swear jar peliminaries

This commit is contained in:
2019-03-19 05:33:46 +11:00
parent 1597241a85
commit a44cf0ec8d

13
plugins/swearjar.js Normal file
View File

@@ -0,0 +1,13 @@
var swearjar = require('swearjar')
module.exports = {
name: "Auto Voice Channel",
init: (dclient) => {
var client = dclient
client.on("message", (msg) => {
if (swearjar.profane(msg.cleanContent))
msg.reply("that's profane :(")
})
}
}