Added /invite command

This commit is contained in:
CBenni 2017-12-12 02:26:44 +01:00
parent 297ef9a150
commit 623ce33a1c

View file

@ -198,6 +198,11 @@ function loadImage(url) {
client.on('message', async function (message) { client.on('message', async function (message) {
console.log(message.cleanContent); console.log(message.cleanContent);
if(message.cleanContent.startsWith('/invite')) {
message.channel.send(`Invite link: <${invitelink}>`);
return;
}
const messageSplit = message.cleanContent.split(" "); const messageSplit = message.cleanContent.split(" ");
const emoji = findEmoji(message.cleanContent); const emoji = findEmoji(message.cleanContent);
let result = null; let result = null;