Katreque / bottotherobot

Botto is a Discord bot template made to help you build your community from scratch, with the tools you need.
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Created command handler #12

Closed InternetRamen closed 3 years ago

InternetRamen commented 3 years ago

I just created a command handler and added a PREFIX thing to .env. The command handler uses fs. You can follow the template below:

module.exports.run = (client, message, args) => {
    message.channel.send(`This is a template! And this is what is after ?template: ${args.join(' ')}`);
};

module.exports.help = {
    name: 'template'
};

FS checks the folder cmds for javascript files.