aboutsummaryrefslogtreecommitdiff
path: root/aleemod.js
diff options
context:
space:
mode:
Diffstat (limited to 'aleemod.js')
-rw-r--r--aleemod.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/aleemod.js b/aleemod.js
index efea3b5..9bec656 100644
--- a/aleemod.js
+++ b/aleemod.js
@@ -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) {