[ban] [kick] to obviously ban and kick author
This commit is contained in:
parent
a5d3eaa662
commit
a7392d46f2
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue