diff --git a/plugins/swearjar.js b/plugins/swearjar.js new file mode 100644 index 0000000..f0d178b --- /dev/null +++ b/plugins/swearjar.js @@ -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 :(") + }) + } +} \ No newline at end of file