aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-07-27 12:22:34 -0400
committerAlee14 <Alee14498@gmail.com>2017-07-27 12:22:34 -0400
commit79a03c171b1f580c2c959303d02c3d8bdc9ebf1b (patch)
tree08b3c6c0434e316e5a0c356d3e93ef08249da132
parent452c4cfb58538f0a064178d74aa3085fa7efeb33 (diff)
downloadAleeBot-79a03c171b1f580c2c959303d02c3d8bdc9ebf1b.tar.gz
AleeBot-79a03c171b1f580c2c959303d02c3d8bdc9ebf1b.tar.bz2
AleeBot-79a03c171b1f580c2c959303d02c3d8bdc9ebf1b.zip
Disabling the anti swearing tool (for now)
-rw-r--r--aleebot.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/aleebot.js b/aleebot.js
index 68b39ac..989e143 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -114,7 +114,7 @@ var logsChannel = "318874545593384970";
}
client.user.setPresence(presence);
}
-
+/*
function wordFilter(content) {
var word = content.search(/\b(fuck|fag|faggot|fuck|fuk|fuc|fucc|ho|phuck|hentai|porn|slut|bitch|succ|fucking|shit|ass|asshole|mofo|motherfucker|fucker|damn|hell|dick|cock|sex|cunt|nigger|nigga)+\b/i);
@@ -123,10 +123,10 @@ function wordFilter(content) {
} else {
return false;
}
-}
+} */
client.on("message", function(message){
- if (wordFilter(message.content))
+/* if (wordFilter(message.content))
{
message.delete();
client.channels.get('318874545593384970').sendMessage(":information_source: " + message.author.username + " just swore!");
@@ -134,7 +134,7 @@ client.on("message", function(message){
switch (Math.floor(Math.random() * 1000) % 3) {
message.reply("You have been caught swearing.");
message.author.send("You have been caught swearing in AleeArmy Community.");
- }
+ } */
if(message.content === prefix + 'profile'){
message.reply(message.author.avatarURL);
}