diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-08-17 18:11:36 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-08-17 18:11:36 -0400 |
| commit | 72ce9472f507ed003fe8378be025e6334349bf19 (patch) | |
| tree | 54bf7e02a3598592cb7bfa2173392f247cce6950 | |
| parent | 1f244adbe81f478dfa992db66d9fd14344adeb9e (diff) | |
| download | AleeBot-72ce9472f507ed003fe8378be025e6334349bf19.tar.gz AleeBot-72ce9472f507ed003fe8378be025e6334349bf19.tar.bz2 AleeBot-72ce9472f507ed003fe8378be025e6334349bf19.zip | |
Added stuff!
| -rw-r--r-- | abwelcome.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/abwelcome.js b/abwelcome.js index 0a54cf1..698df3c 100644 --- a/abwelcome.js +++ b/abwelcome.js @@ -22,7 +22,19 @@ client.on("guildMemberRemove", function(member) { client.on('message', message => { for (x = 0; x < profanities.length; x++) { if (message.content.toUpperCase() == profanities[x].toUpperCase()) { - message.reply('Hey! Don\'t say that word!') + client.channels.get('318874545593384970').sendMessage(":information_source: " + message.author.username + " just swore!"); + console.log('[WARNING] '+ message.author.username +' just swore!') + switch (Math.floor(Math.random() * 1000) % 3) { + case 0: + message.reply('Keep this server clean buddy!'); + break; + case 1: + message.reply('We want this server PG!'); + break; + case 2: + message.reply('Hmm. You like swearing a lot well some other people don\'t!') + break; + } message.delete(); return; } |
