From 0cd2c8adb5eeeb75af39876e98fa129217f712f3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 6 Mar 2021 13:40:02 -0500 Subject: [PATCH] Fix --- commands/other/cleverbot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/other/cleverbot.js b/commands/other/cleverbot.js index a718d8ca..65c2dcd6 100644 --- a/commands/other/cleverbot.js +++ b/commands/other/cleverbot.js @@ -1,5 +1,6 @@ const Command = require('../../structures/Command'); const { stripIndents } = require('common-tags'); +const Cleverbot = require('../../structures/Cleverbot'); module.exports = class CleverbotCommand extends Command { constructor(client) { @@ -24,6 +25,8 @@ module.exports = class CleverbotCommand extends Command { if (this.client.cleverbots.has(msg.channel.id)) { return msg.say('There is already a Cleverbot conversation in this channel.'); } + const cleverbot = new Cleverbot(this.client, msg.channel.id, msg.author.id); + this.client.cleverbots.set(msg.channel.id, cleverbot); const usage = this.client.registry.commands.get('cleverbot-end').usage(); return msg.reply(stripIndents` Cleverbot is now active in this channel, replying to ${msg.author}.