From 1627aa95fda41ee063a5b01dc0d04325f5a09853 Mon Sep 17 00:00:00 2001 From: Lamp Date: Wed, 21 Aug 2019 22:06:04 +0000 Subject: [PATCH] op my alt --- src/commands.js | 2 +- src/config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands.js b/src/commands.js index 964a403..0747f7a 100755 --- a/src/commands.js +++ b/src/commands.js @@ -136,7 +136,7 @@ dClient.on('local_message', async message => { Object.keys(commands).forEach(commandName => { var command = commands[commandName]; if (!(commandName === cmd || (command.aliases && command.aliases.includes(cmd)))) return; - if (command.op && message.author.id !== config.opID) return message.react('🚫'); + if (command.op && !config.opIDs.includes(message.author.id)) return message.react('🚫'); command.exec(message, args, txt).then( (res) => { switch (res) { diff --git a/src/config.js b/src/config.js index 9d374b9..4c0ba88 100644 --- a/src/config.js +++ b/src/config.js @@ -13,7 +13,8 @@ module.exports = { "pinboard": process.env.WEBHOOK_PINBOARD.split("/") }, - "opID": "281134216115257344", + "opID": "281134216115257344", //TODO make sure nothing else is using this + "opIDs": ["281134216115257344", "330499035419115522"], "guildID": testmode ? "467473467634089985" : "321819041348190249", "channels": { // includes voice channels & category channels