aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parentfix: bug (diff)
downloadmodmail-ff2ceda3c5bb773c1a2eca224776f21bc8a1fc27.tar.xz
modmail-ff2ceda3c5bb773c1a2eca224776f21bc8a1fc27.zip
enhance: use plugin system and switch to json config
Diffstat (limited to 'src')
-rw-r--r--src/main.js4
-rw-r--r--src/modules/help.js13
2 files changed, 1 insertions, 16 deletions
diff --git a/src/main.js b/src/main.js
index 24d6b22..b8ef515 100644
--- a/src/main.js
+++ b/src/main.js
@@ -27,7 +27,6 @@ const version = require('./modules/version');
const newthread = require('./modules/newthread');
const idModule = require('./modules/id');
const alert = require('./modules/alert');
-const help = require('./modules/help');
const {ACCIDENTAL_THREAD_MESSAGES} = require('./data/constants');
@@ -259,8 +258,7 @@ function initPlugins() {
version,
newthread,
idModule,
- alert,
- help
+ alert
];
const plugins = [...builtInPlugins];
diff --git a/src/modules/help.js b/src/modules/help.js
deleted file mode 100644
index 076b371..0000000
--- a/src/modules/help.js
+++ /dev/null
@@ -1,13 +0,0 @@
-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 });
- });
-};