aboutsummaryrefslogtreecommitdiff
path: root/basic.js
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-03-05 21:58:08 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-03-05 21:58:08 +0100
commit48faec149c25c22bbaeaacddcf025c72336b7543 (patch)
tree577ae13c609979af7cf6892f3df583661582a54d /basic.js
parent5fa566734ecd144d3bdc203a7ff3b131aa7dfadf (diff)
downloadfurrybot-discord-48faec149c25c22bbaeaacddcf025c72336b7543.tar.xz
Make bot ping proof
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]