You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/utility/invite.js

25 lines
1001 B
JavaScript

6 years ago
const { Command } = require('discord.js-commando');
5 years ago
const { supportServer } = require('../../config.json');
const SelfReloadJSON = require('self-reload-json');
5 years ago
const blacklist = require('../../json/blacklist.json');
6 years ago
6 years ago
module.exports = class InviteCommand extends Command {
constructor(client) {
super(client, {
name: 'invite',
group: 'utility',
6 years ago
memberName: 'invite',
description: 'Send invite to add the bot',
});
}
6 years ago
async run(message) {
let blacklistJson = new SelfReloadJSON('./json/blacklist.json');
if(blacklistJson[message.author.id])
return blacklist(blacklistJson[message.author.id] , message)
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 :)`);
6 years ago
}
};