mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix lint
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user