Show final interaction count

This commit is contained in:
Dragon Fire
2021-03-07 20:39:27 -05:00
parent 57a3bbdbc1
commit b8c8ea9422
4 changed files with 8 additions and 5 deletions
+2
View File
@@ -161,7 +161,9 @@ client.on('message', async msg => {
const cleverbot = client.cleverbots.get(msg.channel.id);
if (cleverbot) {
if (!cleverbot.shouldRespond(msg)) return;
msg.channel.startTyping().catch(() => null);
const response = await cleverbot.respond(msg.cleanContent);
msg.channel.stopTyping(true);
await msg.channel.send(response);
return;
}