This commit is contained in:
Dragon Fire
2021-03-06 13:42:40 -05:00
parent 0cd2c8adb5
commit 3cbe54ee88
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ client.on('message', async msg => {
// Cleverbot handler
const cleverbot = client.cleverbots.get(msg.channel.id);
if (cleverbot) {
if (cleverbot && cleverbot.active) {
if (!hasText) return;
if (!cleverbot.shouldRespond(msg)) return;
const response = await cleverbot.respond(msg.cleanContent);