Bug Fixes and Minor Modifications

This commit is contained in:
Daniel Odendahl Jr
2017-04-01 23:54:28 +00:00
parent 8ed6e15aff
commit ae3d5745b6
8 changed files with 12 additions and 22 deletions
-5
View File
@@ -1,5 +0,0 @@
{
"banned": {
"BANNEDUSERID": "BANNEDUSERID"
}
}
-4
View File
@@ -1,5 +1,4 @@
const commando = require('discord.js-commando');
const banlist = require('./banlist.json');
const config = require('../../config.json');
module.exports = class ContactCommand extends commando.Command {
@@ -22,9 +21,6 @@ module.exports = class ContactCommand extends commando.Command {
}]
});
}
hasPermission(msg) {
return !banlist.banned[msg.author.id];
}
async run(message, args) {
if (message.channel.type !== 'dm') {