ShareX-Upload-Server/src/bot/commands/help.js

12 lines
456 B
JavaScript

module.exports = {
command:"help",
description: "Get info on commands",
syntax: "{PREFIX}help",
execute:async (_this, msg, args) => {
let cmds = [];
_this.commands.map(cmd => {
cmds.push(`[${cmd.command}]: ${cmd.syntax.replace("{PREFIX}", _this.c.prefix)} | ${cmd.description}`)
})
msg.channel.createMessage(`Here is a list of available commands\n\`\`\`ini\n${cmds.join("\n")}\n\`\`\``)
}
}