aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-11-07 18:10:28 -0500
committerGitHub <noreply@github.com>2017-11-07 18:10:28 -0500
commit41e6f7352f1ac04c954169cda7d0bcf16fc5926b (patch)
tree0edaa961fb453e2dfc3aa140374afdfc568b4720
parente5e512358eaa07379d1d19c38b3a1726272328da (diff)
downloadAleeBot-41e6f7352f1ac04c954169cda7d0bcf16fc5926b.tar.gz
AleeBot-41e6f7352f1ac04c954169cda7d0bcf16fc5926b.tar.bz2
AleeBot-41e6f7352f1ac04c954169cda7d0bcf16fc5926b.zip
Removed the profanity filter
-rw-r--r--abwelcome.js23
1 files changed, 1 insertions, 22 deletions
diff --git a/abwelcome.js b/abwelcome.js
index 898b6a2..1dba844 100644
--- a/abwelcome.js
+++ b/abwelcome.js
@@ -1,5 +1,4 @@
const Discord = require('discord.js');
-const profanities = require('profanities');
const client = new Discord.Client();
const config = require('./absettings.json');
@@ -20,27 +19,7 @@ client.on("guildMemberRemove", function(member) {
});
client.on('message', message => {
- for (x = 0; x < profanities.length; x++) {
- if (message.content.toUpperCase() == profanities[x].toUpperCase()) {
- client.channels.get('318874545593384970').sendMessage(":information_source: **" + message.author.username + "** just swore in #"+ message.channel.name +"!");
- console.log('[WARNING] '+ message.author.username +' just swore in #'+ message.channel.name +'!')
- 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;
- case 3:
- message.reply("If you like swearing say it in your head please.")
- }
- message.delete();
- return;
- }
- }
+
});
process.on('unhandledRejection', function(err, p) {