aboutsummaryrefslogtreecommitdiff
path: root/basic.js
diff options
context:
space:
mode:
Diffstat (limited to 'basic.js')
-rw-r--r--basic.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/basic.js b/basic.js
index 0ef4f46..e4b5e64 100644
--- a/basic.js
+++ b/basic.js
@@ -1,8 +1,12 @@
+const common = require("./common.js")
+
module.exports = {
help: {
params: "[<command>]",
help: "Display help for a commands or show list of available commands",
func: (msg, [cmd], {commands}) => {
+ cmd = cmd && common.stripPings(cmd)
+
if (cmd) {
let def = commands[cmd]