Migrated everything to dotenvx + edited .gitignore
This commit is contained in:
parent
4269700b66
commit
9944b67edd
6 changed files with 7 additions and 12 deletions
|
@ -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, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue