From a7392d46f256feae6950e9dd975b92e2aeca7596 Mon Sep 17 00:00:00 2001 From: Supositware Date: Fri, 8 Feb 2019 20:01:46 +0100 Subject: [PATCH] [ban] [kick] to obviously ban and kick author --- event/listeners/message.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/event/listeners/message.js b/event/listeners/message.js index 7994d082..94457229 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -44,6 +44,12 @@ class messageListener extends Listener { let customresponse = reload(`../../tag/${message.guild.id}.json`); if(customresponse[message_content]) { let text = customresponse[message_content]; + if (text.includes('[ban]')) { + message.member.ban('Tag ban :^)'); + } else if (text.includes('[kick]')) { + message.member.kick('Tag kick :^)'); + } + text = rand.random(text, message); message.channel.send(text); }