Haha-Yes/commands/utility/supportme.js

23 lines
991 B
JavaScript
Raw Permalink Normal View History

const { Command } = require('discord.js-commando');
2018-11-28 01:35:26 +01:00
const SelfReloadJSON = require('self-reload-json');
2018-12-25 19:17:07 +01:00
const blacklist = require('../../json/blacklist.json');
2018-12-05 00:52:21 +01:00
module.exports = class supportMeCommand extends Command {
constructor(client) {
super(client, {
name: 'supportme',
2018-10-08 19:11:07 +02:00
group: 'utility',
memberName: 'supportme',
description: `Support me and my bot`,
});
}
async run(message, { text }) {
2018-12-06 23:01:40 +01:00
let blacklistJson = new SelfReloadJSON('./json/blacklist.json');
2018-11-28 01:35:26 +01:00
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
2018-11-28 18:25:57 +01:00
message.say('If you want to support me and my bot you can donate here\nhttps://donatebot.io/checkout/487640086859743232\nor here on patreon: https://patreon.com/user?u=15330358&utm_medium=social&utm_source=twitter&utm_campaign=creatorshare\n(This is totally optional dont feel forced to do it)');
}
};