op my alt
This commit is contained in:
parent
8d34c37304
commit
1627aa95fd
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue