From 9662e7a1075ea95da79a6b68abf6a17b3e24f420 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 9 Dec 2019 12:47:11 -0500 Subject: [PATCH] Oh well, just do it this way then --- commands/other/cleverbot.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/other/cleverbot.js b/commands/other/cleverbot.js index d2a5c99b..778f0054 100644 --- a/commands/other/cleverbot.js +++ b/commands/other/cleverbot.js @@ -25,11 +25,10 @@ module.exports = class CleverbotCommand extends Command { type: 'string' } ], - patterns: [] + patterns: [/^(clevs|cleverbot|xiao) (.+)/i] }); this.convos = new Map(); - this.client.once('ready', () => this.patterns.push(new RegExp(`^() (.+)`, 'i'))); } async run(msg, { text }, fromPattern) {