aboutsummaryrefslogtreecommitdiff
path: root/aleemod.js
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-05-31 15:54:38 -0400
committerGitHub <noreply@github.com>2017-05-31 15:54:38 -0400
commit2368ef90f36996f6c0ebba2f38e312bda4972b6a (patch)
tree23ab0b8f6598fc1e16777daadccc22e69a7ff380 /aleemod.js
parentb7deec7786a4923c7a280c26358d67b56f0e162d (diff)
downloadAleeBot-2368ef90f36996f6c0ebba2f38e312bda4972b6a.tar.gz
AleeBot-2368ef90f36996f6c0ebba2f38e312bda4972b6a.tar.bz2
AleeBot-2368ef90f36996f6c0ebba2f38e312bda4972b6a.zip
Update aleemod.js
Diffstat (limited to 'aleemod.js')
-rw-r--r--aleemod.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/aleemod.js b/aleemod.js
index b828baa..4dcdf1b 100644
--- a/aleemod.js
+++ b/aleemod.js
@@ -1,4 +1,5 @@
const Discord = require('discord.js');
+const api = require('./aleemodkey.js');
const client = new Discord.Client();
var expletiveFilter = true;
@@ -35,7 +36,7 @@ const Discord = require('discord.js');
}
if (expletiveFilter) {
- var exp = msg.search(/(\s|^)(shit|shite|shitty|bullshit|fuck|fucking|ass|penis|cunt|faggot|cock)(\s|$)/i);
+ 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) {
@@ -221,6 +222,6 @@ const Discord = require('discord.js');
}
client.login('token').catch(
- function() {
+function() {
console.log("[ERROR] Login failed.");
});