aboutsummaryrefslogtreecommitdiff
path: root/aleemod.js
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-05-31 19:07:36 -0400
committerGitHub <noreply@github.com>2017-05-31 19:07:36 -0400
commit54ef05f715ba2c3f1fa774d8dd2d40fe4b3c783d (patch)
treeb8c90e8616517bb9439300d89fcfdf09df464e82 /aleemod.js
parentc9504a1db35dc160a3ab0d3a47c2a230b33caf25 (diff)
downloadAleeBot-54ef05f715ba2c3f1fa774d8dd2d40fe4b3c783d.tar.gz
AleeBot-54ef05f715ba2c3f1fa774d8dd2d40fe4b3c783d.tar.bz2
AleeBot-54ef05f715ba2c3f1fa774d8dd2d40fe4b3c783d.zip
Update aleemod.js
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) {