Cleverbot won't reply if a game is going on

This commit is contained in:
Dragon Fire
2021-03-27 20:45:37 -04:00
parent f3189e7f89
commit 88ff292120
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -185,6 +185,7 @@ client.on('message', async msg => {
if (msg.author.bot || (!hasText && !hasImage && !hasEmbed)) return;
if (client.blacklist.user.includes(msg.author.id)) return;
if (msg.isCommand && msg.channel.type !== 'dm') return;
if (client.games.has(msg.channel.id)) return;
// Cleverbot handler
const cleverbot = client.cleverbots.get(msg.channel.id);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "134.3.0",
"version": "134.3.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {