From 922c5818b1b4e5e95d4e83ed4d1bc895bc7d20f0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 21 Mar 2024 20:32:39 -0400 Subject: [PATCH] stopTyping --- Xiao.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/Xiao.js b/Xiao.js index 462b1f6d..bc4e6e5b 100644 --- a/Xiao.js +++ b/Xiao.js @@ -233,11 +233,9 @@ client.on('messageCreate', async msg => { msg.channel.sendTyping().catch(() => null); try { const response = await cleverbot.respond(msg.cleanContent); - msg.channel.stopTyping(true); await msg.channel.send(response); return; } catch (err) { - msg.channel.stopTyping(true); if (err.status === 503) { await msg.channel.send('Monthly API limit reached. Ending conversation.'); client.cleverbots.delete(msg.channel.id);