mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +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.`);
|
if (this.client.allowedUsers.includes(target)) return msg.say(`🧠 \`${target}\` is already allowed.`);
|
||||||
this.client.allowedUsers.push(target);
|
this.client.allowedUsers.push(target);
|
||||||
this.client.exportCleverbotAllowed();
|
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.`);
|
if (!this.client.allowedUsers.includes(target)) return msg.say(`🧠 \`${target}\` is not allowed.`);
|
||||||
removeFromArray(this.client.allowedUsers, target);
|
removeFromArray(this.client.allowedUsers, target);
|
||||||
this.client.exportCleverbotAllowed();
|
this.client.exportCleverbotAllowed();
|
||||||
|
|||||||
Reference in New Issue
Block a user