mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Show final interaction count
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user