From 03df60a9a56f47279723753493bb541bebc1a14d Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 18 May 2021 16:51:49 -0400 Subject: [PATCH] Add home server link in clevs message --- commands/cleverbot/cleverbot-end.js | 6 +++++- commands/cleverbot/cleverbot.js | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/commands/cleverbot/cleverbot-end.js b/commands/cleverbot/cleverbot-end.js index f247a3d0..a549ca98 100644 --- a/commands/cleverbot/cleverbot-end.js +++ b/commands/cleverbot/cleverbot-end.js @@ -1,4 +1,5 @@ const Command = require('../../structures/Command'); +const { stripIndents } = require('common-tags'); module.exports = class CleverbotEndCommand extends Command { constructor(client) { @@ -13,7 +14,10 @@ module.exports = class CleverbotEndCommand extends Command { run(msg) { if (!this.client.isOwner(msg.author) && !this.client.allowedUsers.includes(msg.author.id)) { - return msg.say('You are not currently allowed to use Cleverbot.'); + return msg.say(stripIndents` + You are not currently allowed to use Cleverbot. + Please visit ${this.client.options.invite} for more information. + `); } const cleverbot = this.client.cleverbots.get(msg.channel.id); if (!cleverbot) return msg.say('There is not a Cleverbot conversation in this channel.'); diff --git a/commands/cleverbot/cleverbot.js b/commands/cleverbot/cleverbot.js index 27298416..7401adc0 100644 --- a/commands/cleverbot/cleverbot.js +++ b/commands/cleverbot/cleverbot.js @@ -23,7 +23,10 @@ module.exports = class CleverbotCommand extends Command { run(msg) { if (!this.client.isOwner(msg.author) && !this.client.allowedUsers.includes(msg.author.id)) { - return msg.say('You are not currently allowed to use Cleverbot.'); + return msg.say(stripIndents` + You are not currently allowed to use Cleverbot. + Please visit ${this.client.options.invite} for more information. + `); } if (this.client.cleverbots.has(msg.channel.id)) { return msg.say('There is already a Cleverbot conversation in this channel.');