This commit is contained in:
Dragon Fire
2021-05-18 16:38:52 -04:00
parent 6bc4268637
commit 5931426992
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = class AllowCleverbotCommand extends Command {
});
}
async run(msg, { target }) {
run(msg, { target }) {
if (this.client.allowedUsers.includes(target)) return msg.say(`🧠 \`${target}\` is already allowed.`);
this.client.allowedUsers.push(target);
this.client.exportCleverbotAllowed();
+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = class DisallowCleverbotCommand extends Command {
});
}
async run(msg, { target }) {
run(msg, { target }) {
if (!this.client.allowedUsers.includes(target)) return msg.say(`🧠 \`${target}\` is not allowed.`);
removeFromArray(this.client.allowedUsers, target);
this.client.exportCleverbotAllowed();