From a44cf0ec8dae64621247f18c08250ab6cd5fec59 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Tue, 19 Mar 2019 05:33:46 +1100 Subject: [PATCH] swear jar peliminaries --- plugins/swearjar.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugins/swearjar.js 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