From 2c3bf24f5996753df4a2d4456949fc0b636f6366 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 30 Oct 2019 22:28:49 -0400 Subject: Added an optional checkPermission function and upgraded quick.db. --- commands/Owners Only/eval.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'commands/Owners Only/eval.js') diff --git a/commands/Owners Only/eval.js b/commands/Owners Only/eval.js index 09aac08..5153b63 100644 --- a/commands/Owners Only/eval.js +++ b/commands/Owners Only/eval.js @@ -8,7 +8,6 @@ * *************************************/ exports.run = async (bot, msg, args) => { - if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot to use this command.'); const { RichEmbed } = require('discord.js'); const code = args.join(' '); @@ -63,6 +62,11 @@ exports.run = async (bot, msg, args) => { } }; +exports.checkPermission = (bot, member) => { + if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(member.id)) return false; + return true; +} + exports.conf = { aliases: ['exec'], guildOnly: false, -- cgit v1.2.3