Fix Cleverbot error

This commit is contained in:
Dragon Fire
2021-05-04 21:25:26 -04:00
parent 707ae301ee
commit 0d012cd041
2 changed files with 13 additions and 9 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ module.exports = class Cleverbot {
setTimeout() {
return setTimeout(() => {
this.manager.delete(this.channelID);
if (!this.client.cleverbots.has(this.channelID)) return;
this.client.cleverbots.delete(this.channelID);
if (!this.channel) return;
this.channel.send('Conversation timed out.').catch(() => null);
}, 600000);