Only prevent 2 conversations

This commit is contained in:
Dragon Fire
2024-05-12 00:54:20 -04:00
parent 54be5f2e9d
commit b080d3f53c
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class CleverbotCommand extends Command {
}
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.');
}
const cleverbot = new Cleverbot(this.client, msg.channel.id, msg.author.id);