mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 05:51:42 +02:00
public stuff
This commit is contained in:
@@ -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...'}
|
||||
`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user