Migrated everything to dotenvx + edited .gitignore

This commit is contained in:
A Bunch of Computer Nerds 2024-12-08 21:21:46 -03:00
parent 4269700b66
commit 9944b67edd
6 changed files with 7 additions and 12 deletions

View file

@ -1,4 +1,3 @@
const Config = require('../props/config.json');
const { getStrings } = require('../plugins/checklang.js');
const { isOnSpamWatch } = require('../plugins/lib-spamwatch/spamwatch.js');
const spamwatchMiddleware = require('../plugins/lib-spamwatch/Middleware.js')(isOnSpamWatch);
@ -54,7 +53,7 @@ function getSystemInfo() {
async function handleAdminCommand(ctx, action, successMessage, errorMessage) {
const Strings = getStrings(ctx.from.language_code);
const userId = ctx.from.id;
if (Config.admins.includes(userId)) {
if (process.env.botAdmins.includes(userId)) {
try {
await action();
ctx.reply(successMessage, {