Add files via upload

This commit is contained in:
2021-08-18 00:12:37 -07:00
committed by GitHub
parent ecd6246099
commit 9d759573d2
55 changed files with 3098 additions and 0 deletions

12
bot/commands/help.js Normal file
View File

@@ -0,0 +1,12 @@
module.exports = {
command: 'help',
description: 'Get info on commands',
syntax: '{PREFIX}help',
execute: async (_this, msg) => {
const 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\`\`\``);
},
};