added [delete] for the tag that will delete the message

This commit is contained in:
Supositware 2019-04-05 19:46:59 +02:00
parent 1ba15e1fbc
commit 49b531d971

View file

@ -15,11 +15,6 @@ class messageListener extends Listener {
} }
async exec(message) { async exec(message) {
//I FUCKING HATE THIS GIF PLS KILL ME
if (message.guild.id== '482734525563273216' && message.content.includes('https://media.discordapp.net/attachments/532980995767533568/561977366977445889/meme.gif'))
return message.delete();
//Yes i will remove it soon anyway its nothing serious
if (message.author.bot) return; { if (message.author.bot) return; {
let autoresponse = reload('../../json/autoresponse.json'); let autoresponse = reload('../../json/autoresponse.json');
let message_content = message.content.toLowerCase(); let message_content = message.content.toLowerCase();
@ -60,6 +55,8 @@ class messageListener extends Listener {
message.member.ban('Tag ban :^)'); message.member.ban('Tag ban :^)');
} else if (text.includes('[kick]')) { } else if (text.includes('[kick]')) {
message.member.kick('Tag kick :^)'); message.member.kick('Tag kick :^)');
} else if (text.includes('[delete]')) {
message.delete('Tag delete :^)');
} }
text = rand.random(text, message); text = rand.random(text, message);