mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-24 02:36:11 +10:00
swear jar peliminaries
This commit is contained in:
13
plugins/swearjar.js
Normal file
13
plugins/swearjar.js
Normal 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 :(")
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user