mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Only prevent 2 conversations
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = class CleverbotCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(msg, { text }) {
|
async run(msg, { text }) {
|
||||||
if (this.client.cleverbots.has(msg.channel.id)) {
|
if (this.client.cleverbots.has(msg.channel.id) && !text) {
|
||||||
return msg.say('There is already a Cleverbot conversation in this channel.');
|
return msg.say('There is already a Cleverbot conversation in this channel.');
|
||||||
}
|
}
|
||||||
const cleverbot = new Cleverbot(this.client, msg.channel.id, msg.author.id);
|
const cleverbot = new Cleverbot(this.client, msg.channel.id, msg.author.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user