This commit is contained in:
Flummi 2018-03-03 02:46:45 +01:00
parent 14d5bdb183
commit 703152f170

View File

@ -4,7 +4,8 @@ export default bot => {
f: e => {
if(e.args[0] && [...bot._trigger.keys()].includes(e.args[0])) {
const help = bot._trigger.get(e.args[0]).help;
e.reply(`(WIP) ${help.text}\nusage: ${help.usage}`);
if(help.text)
e.reply(`${help.text}\nusage: ${help.usage}`);
}
else {
let triggers = [];