aboutsummaryrefslogtreecommitdiff
path: root/src/modules/help.js
diff options
context:
space:
mode:
authorSin-MacBook <[email protected]>2020-08-11 23:13:24 +0200
committerSin-MacBook <[email protected]>2020-08-11 23:13:24 +0200
commit55e9c9188fcced6b74045290b5767c68af572fda (patch)
tree8413825cdcf622cc6fc915bfe4ccc073437a38c8 /src/modules/help.js
parentclean this up when home (diff)
downloadmodmail-55e9c9188fcced6b74045290b5767c68af572fda.tar.xz
modmail-55e9c9188fcced6b74045290b5767c68af572fda.zip
ok
Diffstat (limited to 'src/modules/help.js')
-rw-r--r--src/modules/help.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/help.js b/src/modules/help.js
new file mode 100644
index 0000000..076b371
--- /dev/null
+++ b/src/modules/help.js
@@ -0,0 +1,13 @@
+const utils = require("../utils");
+const config = require('../config');
+
+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 });
+ });
+};