From 48faec149c25c22bbaeaacddcf025c72336b7543 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 5 Mar 2022 21:58:08 +0100 Subject: Make bot ping proof --- basic.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'basic.js') 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: "[]", 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] -- cgit v1.2.3