From b4ce3a27a48ccc31bc332560644b72fbdcb0e95b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 9 Dec 2019 12:43:50 -0500 Subject: [PATCH] This feels really hacky --- commands/other/cleverbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/other/cleverbot.js b/commands/other/cleverbot.js index 8925c700..d2a5c99b 100644 --- a/commands/other/cleverbot.js +++ b/commands/other/cleverbot.js @@ -29,7 +29,7 @@ module.exports = class CleverbotCommand extends Command { }); this.convos = new Map(); - this.patterns.push(new RegExp(`^() (.+)`, 'i')); + this.client.once('ready', () => this.patterns.push(new RegExp(`^() (.+)`, 'i'))); } async run(msg, { text }, fromPattern) {