mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Cleverbot error
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user