reverted changefrom blacklist

This commit is contained in:
Loic Bersier 2018-11-28 01:26:42 +01:00
parent 5add6418f4
commit 760efe7928
30 changed files with 121 additions and 179 deletions

View file

@ -1,8 +1,7 @@
const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const fetch = require('node-fetch')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class AdviceCommand extends Command {
constructor(client) {
@ -15,10 +14,8 @@ module.exports = class AdviceCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
fetch("http://api.adviceslip.com/advice").then((response) => {
return response.json();
}).then((response) => {

View file

@ -1,7 +1,6 @@
const { Command } = require('discord.js-commando');
const fetch = require('node-fetch')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class BadMemeCommand extends Command {
constructor(client) {
@ -14,9 +13,8 @@ module.exports = class BadMemeCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
fetch("https://api.imgur.com/3/gallery/hot/day?showViral=true&mature=false&perPage=100&album_previews=true", {
headers: { "Authorization": "Client-ID e4cb6948f80f295" },

View file

@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class clapCommand extends Command {
constructor(client) {
super(client, {
@ -19,10 +19,8 @@ module.exports = class clapCommand extends Command {
}
async run(message, { text }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let clap = text.replace(/ /g, ' 👏 ');
message.delete();
message.say(`${clap} 👏`);

View file

@ -1,7 +1,7 @@
const { Command } = require('discord.js-commando');
const responseObject = require("../../json/randVid.json");
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class dankCommand extends Command {
constructor(client) {
super(client, {
@ -13,10 +13,8 @@ module.exports = class dankCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
const number = Object.keys(responseObject).length;
const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`);

View file

@ -3,8 +3,8 @@ const responseObject = require("../../json/despacito.json");
const { createCanvas, loadImage, getContext } = require('canvas')
const superagent = require('superagent')
const Discord = require('discord.js');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class DespacitoCommand extends Command {
constructor(client) {
super(client, {
@ -24,10 +24,8 @@ module.exports = class DespacitoCommand extends Command {
}
async run(message, { user }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
if (!user) {
const number = Object.keys(responseObject).length;
const despacitoNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;

View file

@ -1,7 +1,7 @@
const { Command } = require('discord.js-commando');
const emojiCharacters = require('../../emojiCharacters');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class emoteSayCommand extends Command {
constructor(client) {
super(client, {
@ -20,10 +20,8 @@ module.exports = class emoteSayCommand extends Command {
}
async run(message, { text }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
message.delete();
let emojiArray = [];
for (let i = 0; i < text.length; i++)

View file

@ -1,7 +1,7 @@
const { Command } = require('discord.js-commando');
const responseObject = require("../../json/funfact.json");
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class FunFactCommand extends Command {
constructor(client) {
super(client, {
@ -13,10 +13,8 @@ module.exports = class FunFactCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
const number = Object.keys(responseObject).length;
const funFactNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send(`Fun fact: ${responseObject[funFactNumber]}`);

View file

@ -1,7 +1,6 @@
const { Command } = require('discord.js-commando');
const fetch = require('node-fetch')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class BadMemeCommand extends Command {
constructor(client) {
@ -15,9 +14,8 @@ module.exports = class BadMemeCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
fetch('http://inspirobot.me/api?generate=true')
.then(res => res.text())

View file

@ -1,8 +1,7 @@
const { Command } = require('discord.js-commando');
const printer = require('printer');
const { printChannel } = require('../../config.json');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json');
module.exports = class printCommand extends Command {
constructor(client) {
super(client, {
@ -26,11 +25,13 @@ module.exports = class printCommand extends Command {
}
async run(message, { text }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
const channel = this.client.channels.get(printChannel);
printer.printDirect({data:`Printed by: ${message.author.username}\n\n${text}`
, type: 'TEXT' // type: RAW, TEXT, PDF, JPEG, .. depends on platform
, success:function(jobID){

View file

@ -1,8 +1,8 @@
const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const fetch = require('node-fetch');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class redditCommand extends Command {
constructor(client) {
super(client, {
@ -21,10 +21,8 @@ module.exports = class redditCommand extends Command {
}
async run(message, { sub }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let /* the bodies hit the */ i = Math.floor((Math.random() * 10) + 1);
let a = 0
fetch('https://www.reddit.com/r/' + sub + '.json?limit=100').then((response) => {

View file

@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class sayCommand extends Command {
constructor(client) {
super(client, {
@ -19,10 +19,8 @@ module.exports = class sayCommand extends Command {
}
async run(message, { text }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
message.delete();
message.say(text);
}

View file

@ -1,8 +1,7 @@
const { Command } = require('discord.js-commando');
const faceapp = require('faceapp')
const superagent = require('superagent')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class faceappCommand extends Command {
constructor(client) {
@ -30,9 +29,8 @@ module.exports = class faceappCommand extends Command {
}
async run(message, { url, type }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let origin = null;

View file

@ -2,8 +2,8 @@ const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const { createCanvas, loadImage, getContext } = require('canvas')
const superagent = require('superagent')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class fetishCommand extends Command {
@ -17,10 +17,8 @@ module.exports = class fetishCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0])

View file

@ -2,8 +2,8 @@ const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const { createCanvas, loadImage, getContext } = require('canvas')
const superagent = require('superagent')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class godCommand extends Command {
@ -17,10 +17,8 @@ module.exports = class godCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0])

View file

@ -2,8 +2,8 @@ const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const { createCanvas, loadImage, getContext } = require('canvas')
const superagent = require('superagent')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class humanCommand extends Command {
@ -17,10 +17,8 @@ module.exports = class humanCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0])

View file

@ -2,8 +2,8 @@ const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const { createCanvas, loadImage, getContext } = require('canvas')
const superagent = require('superagent')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class idubbbzCommand extends Command {
@ -26,10 +26,8 @@ module.exports = class idubbbzCommand extends Command {
}
async run(message, { text }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0])

View file

@ -2,8 +2,8 @@ const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const { createCanvas, loadImage, getContext } = require('canvas')
const superagent = require('superagent')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class idubbbzpaintCommand extends Command {
@ -26,10 +26,8 @@ module.exports = class idubbbzpaintCommand extends Command {
}
async run(message, { text }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0])

View file

@ -2,8 +2,8 @@ const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const { createCanvas, loadImage, getContext } = require('canvas')
const superagent = require('superagent')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class likeCommand extends Command {
@ -17,10 +17,8 @@ module.exports = class likeCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0])

View file

@ -2,8 +2,8 @@ const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const { createCanvas, loadImage, getContext } = require('canvas')
const superagent = require('superagent')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class uglyCommand extends Command {
@ -17,10 +17,8 @@ module.exports = class uglyCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let Attachment = (message.attachments).array();
let image = null
if (!Attachment[0])

View file

@ -1,6 +1,5 @@
const { Command } = require('discord.js-commando');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class AvatarCommand extends Command {
constructor(client) {
@ -21,10 +20,8 @@ module.exports = class AvatarCommand extends Command {
}
async run(message, { user }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
if (!user)
return message.say(`Your avatar:\n${message.author.displayAvatarURL}`);
else

View file

@ -1,8 +1,7 @@
const { Command } = require('discord.js-commando');
const fs = require('fs');
const youtubedl = require('youtube-dl');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json');
const { fbuser, fbpasswd } = require('../../config.json');
module.exports = class downloadCommand extends Command {
@ -24,10 +23,8 @@ module.exports = class downloadCommand extends Command {
}
async run(message, { link }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
if(link.includes("http") || link.includes("www")) {
message.say('Downloading...').then(msg => {
video.on('end', function() {

View file

@ -1,7 +1,7 @@
const { Command } = require('discord.js-commando');
const { feedbackChannel } = require('../../config.json');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
const fs = require('fs');
module.exports = class feedbackCommand extends Command {
constructor(client) {
@ -25,10 +25,8 @@ module.exports = class feedbackCommand extends Command {
}
async run(message, { text }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
const channel = this.client.channels.get(feedbackChannel);
channel.send(`from ${message.author.username} (${message.author.id}) : ${text}`);
message.say('Your feedback has been sent!');

View file

@ -1,8 +1,8 @@
const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const fetch = require('node-fetch')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class InfoCommand extends Command {
constructor(client) {
super(client, {
@ -21,10 +21,8 @@ module.exports = class InfoCommand extends Command {
}
async run(message, { search }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let searchURL = encodeURI(search)
fetch("https://api.duckduckgo.com/?q=" + searchURL + "&format=json").then((response) => {
return response.json();

View file

@ -1,7 +1,7 @@
const { Command } = require('discord.js-commando');
const { supportServer } = require('../../config.json')
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class InviteCommand extends Command {
constructor(client) {
super(client, {
@ -13,10 +13,8 @@ module.exports = class InviteCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
message.say('Check your dm')
return message.author.send(`You can add me from here: https://discordapp.com/oauth2/authorize?client_id=${this.client.user.id}&scope=bot&permissions=0\nYou can also join my support server over here: ${supportServer} come and say hi :)`);
}

View file

@ -1,7 +1,7 @@
const { oneLine } = require('common-tags');
const { Command } = require('discord.js-commando');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class PingCommand extends Command {
constructor(client) {
super(client, {
@ -16,22 +16,20 @@ module.exports = class PingCommand extends Command {
});
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(!message.editable) {
const pingMsg = await message.say('Pinging...');
async run(msg) {
if(blacklist[msg.author.id])
return msg.channel.send("You are blacklisted")
if(!msg.editable) {
const pingMsg = await msg.say('Pinging...');
return pingMsg.edit(oneLine`
${message.channel.type !== 'dm' ? `${message.author},` : ''}
<:ping:499226870047571978> Pong! The message round-trip took **${pingMsg.createdTimestamp - message.createdTimestamp}**ms.
${msg.channel.type !== 'dm' ? `${msg.author},` : ''}
<:ping:499226870047571978> Pong! The message round-trip took **${pingMsg.createdTimestamp - msg.createdTimestamp}**ms.
${this.client.ping ? `The heartbeat ping is **${Math.round(this.client.ping)}**ms.` : ''}
`);
} else {
await message.edit('Pinging...');
return message.edit(oneLine`
Pong! The message round-trip took **${message.editedTimestamp - message.createdTimestamp}**ms.
await msg.edit('Pinging...');
return msg.edit(oneLine`
Pong! The message round-trip took **${msg.editedTimestamp - msg.createdTimestamp}**ms.
${this.client.ping ? `The heartbeat ping is **${Math.round(this.client.ping)}**ms.` : ''}
`);
}

View file

@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class ServerCommand extends Command {
constructor(client) {
super(client, {
@ -14,10 +14,8 @@ module.exports = class ServerCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
const addEmbed = {
color: 0x0099ff,
title: 'Stats of the server',

View file

@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class statsCommand extends Command {
constructor(client) {
super(client, {
@ -12,10 +12,8 @@ module.exports = class statsCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
let totalSeconds = (this.client.uptime / 1000);
let days = Math.floor(totalSeconds / 86400);
let hours = Math.floor(totalSeconds / 3600);

View file

@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class supportMeCommand extends Command {
constructor(client) {
super(client, {
@ -12,10 +12,8 @@ module.exports = class supportMeCommand extends Command {
}
async run(message, { text }) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
message.say('If you want to support me and my bot you can donate here\nhttps://donatebot.io/checkout/487640086859743232\n(This is totally optional dont feel forced to do it)');
}
};

View file

@ -1,6 +1,6 @@
const { Command } = require('discord.js-commando');
const SelfReloadJSON = require('self-reload-json');
const blacklist = require('blacklist');
const blacklist = require('../../json/blacklist.json')
module.exports = class UpDootCommand extends Command {
constructor(client) {
super(client, {
@ -13,10 +13,8 @@ module.exports = class UpDootCommand extends Command {
}
async run(message) {
let blacklistJson = new SelfReloadJSON('../../json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
if(blacklist[message.author.id])
return message.channel.send("You are blacklisted")
const upDoot = {
color: 0x93C54B,
title: 'Vote for my bot',

View file

@ -5,7 +5,7 @@ const { token, prefix, statsChannel, ownerID, supportServer } = require('./confi
const responseObject = require("./json/reply.json");
const reactObject = require("./json/react.json");
const imgResponseObject = require("./json/imgreply.json");
const SelfReloadJSON = require('self-reload-json');
var SelfReloadJSON = require('self-reload-json');
// Prefix and ownerID and invite to support server
const client = new CommandoClient({
commandPrefix: prefix,