From 05856065ec57cd059da22be7e2cfa74a83548f1d Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Wed, 28 Nov 2018 00:10:14 +0100 Subject: [PATCH] added blacklist --- commands/fun/print.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands/fun/print.js b/commands/fun/print.js index 0e79206f..c69672d4 100644 --- a/commands/fun/print.js +++ b/commands/fun/print.js @@ -1,6 +1,7 @@ const { Command } = require('discord.js-commando'); const printer = require('printer'); -const { printChannel } = require('../../config.json') +const { printChannel } = require('../../config.json'); +const blacklist = require('../../json/blacklist.json'); module.exports = class printCommand extends Command { constructor(client) { super(client, { @@ -24,6 +25,10 @@ module.exports = class printCommand extends Command { } async run(message, { text }) { + if(blacklist[message.author.id]) + return message.channel.send("You are blacklisted") + + const channel = this.client.channels.get(printChannel);