Added /invite command
This commit is contained in:
parent
297ef9a150
commit
623ce33a1c
1 changed files with 5 additions and 0 deletions
5
index.js
5
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;
|
||||
|
|
Reference in a new issue