[ban] [kick] to obviously ban and kick author

This commit is contained in:
Supositware 2019-02-08 20:01:46 +01:00
parent a5d3eaa662
commit a7392d46f2

View file

@ -44,6 +44,12 @@ class messageListener extends Listener {
let customresponse = reload(`../../tag/${message.guild.id}.json`); let customresponse = reload(`../../tag/${message.guild.id}.json`);
if(customresponse[message_content]) { if(customresponse[message_content]) {
let text = 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); text = rand.random(text, message);
message.channel.send(text); message.channel.send(text);
} }