Add home server link in clevs message

This commit is contained in:
Dragon Fire
2021-05-18 16:51:49 -04:00
parent 5931426992
commit 03df60a9a5
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -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.');
+4 -1
View File
@@ -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.');