Add invite command

This commit is contained in:
Cynthia Foxwell 2021-05-17 15:40:42 -06:00
parent 61892f43cb
commit feabf7de8c

View file

@ -135,3 +135,13 @@ ping.callback = async function (msg) {
newMsg.edit(`Pong. RTT: \`${rtt}ms\`, Gateway: \`${gateway}ms\``);
};
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);