public stuff

This commit is contained in:
Daniel Odendahl Jr
2018-04-28 20:28:11 +00:00
parent 79daa7b363
commit 656b0b0e88
5 changed files with 35 additions and 4 deletions
+26
View File
@@ -0,0 +1,26 @@
const { Command } = require('discord.js-commando');
const { stripIndents } = require('common-tags');
module.exports = class InviteCommand extends Command {
constructor(client) {
super(client, {
name: 'invite',
aliases: ['join'],
group: 'util',
memberName: 'invite',
description: 'Responds with Xiao\'s invite links.',
guarded: true
});
}
async run(msg) {
const invite = await this.client.generateInvite('372632641');
return msg.say(stripIndents`
To invite me to your server, use this link:
<${invite}>
Or, join my home server:
${this.client.options.invite || 'Coming soon...'}
`);
}
};