From 623ce33a1c9e6c5d942b3c95984d1a7782287420 Mon Sep 17 00:00:00 2001 From: CBenni Date: Tue, 12 Dec 2017 02:26:44 +0100 Subject: [PATCH] Added /invite command --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 5f25cf7..6e8499a 100644 --- a/index.js +++ b/index.js @@ -198,6 +198,11 @@ function loadImage(url) { client.on('message', async function (message) { console.log(message.cleanContent); + if(message.cleanContent.startsWith('/invite')) { + message.channel.send(`Invite link: <${invitelink}>`); + return; + } + const messageSplit = message.cleanContent.split(" "); const emoji = findEmoji(message.cleanContent); let result = null;