aboutsummaryrefslogtreecommitdiff
path: root/plugins/help.js
diff options
context:
space:
mode:
authorSin-MacBook <[email protected]>2020-08-12 19:50:03 +0200
committerSin-MacBook <[email protected]>2020-08-12 19:50:03 +0200
commitff2ceda3c5bb773c1a2eca224776f21bc8a1fc27 (patch)
tree42bda26dd1ffc671b8954aadc4d79d8dae211093 /plugins/help.js
parentfix: bug (diff)
downloadmodmail-ff2ceda3c5bb773c1a2eca224776f21bc8a1fc27.tar.xz
modmail-ff2ceda3c5bb773c1a2eca224776f21bc8a1fc27.zip
enhance: use plugin system and switch to json config
Diffstat (limited to 'plugins/help.js')
-rw-r--r--plugins/help.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/help.js b/plugins/help.js
new file mode 100644
index 0000000..cad2951
--- /dev/null
+++ b/plugins/help.js
@@ -0,0 +1,12 @@
+const utils = require("../src/utils");
+
+module.exports = ({ bot, knex, config, commands }) => {
+ commands.addInboxServerCommand('help', [], async (msg, args, thread) => {
+ let embed = {
+ title: "ModMail - Help",
+ type: "rich",
+ description: "[mm.bot/commands](https://gist.github.com/8cy/1ecb7106d096f77394122cfa4fae77ad)"
+ };
+ utils.postSystemMessageWithFallback(msg.channel, thread, { embed });
+ });
+};