op my alt

This commit is contained in:
Lamp 2019-08-21 22:06:04 +00:00
parent 8d34c37304
commit 1627aa95fd
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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