From 62af8f170a54eb2508477f9f9459bd1dbed23794 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Mon, 25 Feb 2019 03:26:06 +0100 Subject: [PATCH] reload blacklist --- commands/general/tweet.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/general/tweet.js b/commands/general/tweet.js index 196782a..32bcf3c 100644 --- a/commands/general/tweet.js +++ b/commands/general/tweet.js @@ -2,7 +2,7 @@ const { Command } = require('discord-akairo'); const Twitter = require('twitter-lite'); const rand = require('../../rand.js'); const { twiConsumer, twiConsumerSecret, twiToken, twiTokenSecret, twiChannel } = require('../../config.json'); -const blacklist = require('../../json/twiBlacklist.json'); +const reload = require('auto-reload'); class tweetCommand extends Command { constructor() { @@ -27,6 +27,7 @@ class tweetCommand extends Command { } async exec(message, args) { + const blacklist = reload('../../json/twiBlacklist.json'); const channel = this.client.channels.get(twiChannel); if (blacklist.includes(message.author.id)) {