diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-05-31 19:07:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-31 19:07:36 -0400 |
| commit | 54ef05f715ba2c3f1fa774d8dd2d40fe4b3c783d (patch) | |
| tree | b8c90e8616517bb9439300d89fcfdf09df464e82 /aleemod.js | |
| parent | c9504a1db35dc160a3ab0d3a47c2a230b33caf25 (diff) | |
| download | AleeBot-54ef05f715ba2c3f1fa774d8dd2d40fe4b3c783d.tar.gz AleeBot-54ef05f715ba2c3f1fa774d8dd2d40fe4b3c783d.tar.bz2 AleeBot-54ef05f715ba2c3f1fa774d8dd2d40fe4b3c783d.zip | |
Update aleemod.js
Diffstat (limited to 'aleemod.js')
| -rw-r--r-- | aleemod.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -48,7 +48,6 @@ const Discord = require('discord.js'); if (expletiveFilter) { var exp = msg.search(/(\s|^)(shit|shite|shitty|bullshit|fuck|fucking|ass|penis|cunt|faggot|damn|wank|wanker|nigger|bastard|piss|vagina|thisisnotarealwordbutatestword)(\s|$)/i); if (exp != -1) { //Gah! They're not supposed to say that! - switch (Math.floor(Math.random() * 1000) % 5) { case 0: message.reply("Hey! This is not your time to swear."); @@ -72,8 +71,7 @@ const Discord = require('discord.js'); } //No Caps - if (msg.match(/[A-Z]/gm) != null && msg.match(/[A-Z]/gm).length > (parseFloat(msg.length) * 0.8)) { - console.log("[FILTER] Caps caught from " + getUserString(message.author)); + /* if (msg.match(/[A-Z]/gm) != null && msg.match(/[A-Z]/gm).length > (parseFloat(msg.length) * 0.8)) { switch (Math.floor(Math.random() * 1000) % 6) { case 0: message.reply("Shh..."); @@ -99,7 +97,7 @@ const Discord = require('discord.js'); } } } - + } */ //Spam limiting if (lastMessages[message.author.id] != msg) { |
