mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix typing indicator
This commit is contained in:
@@ -230,7 +230,7 @@ client.on('messageCreate', async msg => {
|
||||
if (cleverbot) {
|
||||
if (!cleverbot.shouldRespond(msg)) return;
|
||||
client.registry.commands.get('cleverbot').uses++;
|
||||
msg.channel.startTyping().catch(() => null);
|
||||
msg.channel.sendTyping().catch(() => null);
|
||||
try {
|
||||
const response = await cleverbot.respond(msg.cleanContent);
|
||||
msg.channel.stopTyping(true);
|
||||
|
||||
Reference in New Issue
Block a user