diff --git a/.idea/dictionaries/wayback.xml b/.idea/dictionaries/wayback.xml index 143ec9a..45b1c8e 100644 --- a/.idea/dictionaries/wayback.xml +++ b/.idea/dictionaries/wayback.xml @@ -4,7 +4,9 @@ botmeister creamsicle defcon + haha osselbot + quoteable quoteadd quotesend simp diff --git a/.idea/scopes/Osselbot.xml b/.idea/scopes/Osselbot.xml new file mode 100644 index 0000000..7b65f3a --- /dev/null +++ b/.idea/scopes/Osselbot.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/README.md b/README.md index 7be5845..c90f348 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Osselbot -A bot that is kinda stupid but it works surprisingly well +A bot that is kinda stupid, but it works surprisingly well ![Node.js CI](https://github.com/Technicolor-creamsicle/Osselbot/workflows/Node.js%20CI/badge.svg) diff --git a/src/config.json b/src/config.json index dbf0d1d..4d332ff 100644 --- a/src/config.json +++ b/src/config.json @@ -1,4 +1,5 @@ { "token" : "Njc4MDkzNjY4NzcwNTEyOTE3.Xr7SNw.XS_D_dEJ7hX6N5Rmnfr_OQpfznU", - "prefix" : "?" + "prefix" : "?", + "abuse" : [""] } diff --git a/src/index.js b/src/index.js index b39f89c..5fec6d2 100755 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,5 @@ #!/usr/bin/env node //TODO Write tests -//TODO Make an automation system for deployment //TODO Test all commands //Those are so I remember stuff @@ -49,7 +48,7 @@ client.on("message", async message => { //Message processing // noinspection SpellCheckingInspection - if (message.content.toLowerCase().includes('nigg', 'negro', 'niglet', 'fag', 'f4g', 'n1gg', 'gg3r')) { + if (message.content.toLowerCase().includes('nigg'||'negro'||'niglet'||'fag'||'f4g'||'n1gg'||'gg3r')) { await message.delete(); return message.reply(`Listen here cum-sock we dont appreciate that here ${message.member}. If you gonna be like that you may just well end up in the JAR and we all know how that ends...`) } @@ -125,7 +124,7 @@ client.on("message", async message => { } if (command === "fix") { - if (message.member.roles.cache.some(r => ["Botmeister"].includes(r.name))) { + if (message.member.roles.cache.some(r => ["Ally of the Order"].includes(r.name))) { return message.channel.send("I guess it's my fault will fix."); } return;