From 60ca2756dacac39e4291601c0130030c8fc4a3ed Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 10 Dec 2019 17:39:22 -0500 Subject: [PATCH] Remove now useless cleverbot user lock --- .env.example | 1 - commands/other/cleverbot.js | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index 7f852e2f..c6f22050 100644 --- a/.env.example +++ b/.env.example @@ -9,7 +9,6 @@ XIAO_WEBHOOK_TOKEN= POSTER_ID= POSTER_TOKEN= POSTER_TIME= -CLEVERBOT_PATTERN_USERS= # Emoji IDs GOLD_FISH_EMOJI_ID= diff --git a/commands/other/cleverbot.js b/commands/other/cleverbot.js index e99dd212..547bead3 100644 --- a/commands/other/cleverbot.js +++ b/commands/other/cleverbot.js @@ -1,7 +1,6 @@ const Command = require('../../structures/Command'); const request = require('node-superfetch'); -const { CLEVERBOT_KEY, CLEVERBOT_PATTERN_USERS } = process.env; -const allowedPatternUsers = CLEVERBOT_PATTERN_USERS ? CLEVERBOT_PATTERN_USERS.split(',') : []; +const { CLEVERBOT_KEY } = process.env; const blankResponses = ['What?', 'Huh?', 'I don\'t understand.', 'Speak up, please.']; module.exports = class CleverbotCommand extends Command { @@ -32,10 +31,7 @@ module.exports = class CleverbotCommand extends Command { } async run(msg, { text }, fromPattern) { - if (fromPattern) { - if (!allowedPatternUsers.includes(msg.author.id)) return null; - text = msg.patternMatches[2]; - } + if (fromPattern) text = msg.patternMatches[2]; try { const convo = this.convos.get(msg.channel.id); const { body } = await request