This commit is contained in:
2019-03-19 05:38:33 +11:00
parent ba26c7bcc3
commit ba4814464f
3 changed files with 8 additions and 3 deletions

5
package-lock.json generated
View File

@@ -399,6 +399,11 @@
"safe-buffer": "~5.1.0"
}
},
"swearjar": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/swearjar/-/swearjar-0.2.0.tgz",
"integrity": "sha1-w/Gje/zXye+z1mY8mNTBAqnjyj0="
},
"tough-cookie": {
"version": "2.4.3",
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz",

View File

@@ -15,4 +15,4 @@
},
"author": "",
"license": "ISC"
}
}

View File

@@ -5,9 +5,9 @@ module.exports = {
init: (dclient) => {
var client = dclient
return;
client.on("message", (msg) => {
if (swearjar.profane(msg.cleanContent))
msg.reply("that's profane :(")
if (swearjar.profane(msg.cleanContent)) msg.reply("that's profane :(")
})
}
}