Add invite command
This commit is contained in:
parent
61892f43cb
commit
feabf7de8c
1 changed files with 10 additions and 0 deletions
|
@ -135,3 +135,13 @@ ping.callback = async function (msg) {
|
||||||
newMsg.edit(`Pong. RTT: \`${rtt}ms\`, Gateway: \`${gateway}ms\``);
|
newMsg.edit(`Pong. RTT: \`${rtt}ms\`, Gateway: \`${gateway}ms\``);
|
||||||
};
|
};
|
||||||
hf.registerCommand(ping);
|
hf.registerCommand(ping);
|
||||||
|
|
||||||
|
const invite = new Command("invite");
|
||||||
|
invite.category = CATEGORY;
|
||||||
|
invite.helpText = "Returns invite link for the bot.";
|
||||||
|
invite.callback = function (msg) {
|
||||||
|
msg.channel.createMessage(
|
||||||
|
`<https://discord.com/oauth2/authorize?client_id=${hf.config.client_id}&scope=bot>`
|
||||||
|
);
|
||||||
|
};
|
||||||
|
hf.registerCommand(invite);
|
||||||
|
|
Loading…
Reference in a new issue