mirror of
https://github.com/jcreek/MupBot.git
synced 2026-07-12 18:33:44 +00:00
feat(*): Add commands library
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
module.exports = {
|
||||
matchCommand: function (Discord, config, logger, message, command, args) {
|
||||
switch(command) {
|
||||
case 'help':
|
||||
commandHelp(Discord, config, logger, message, command, args);
|
||||
break;
|
||||
default:
|
||||
message.channel.send(`That command is not one I know yet - but you could add it! To find out more visit ${config.github_url}`);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
function commandHelp (Discord, config, logger, message, command, args) {
|
||||
const msg = `
|
||||
The commands available to you are:
|
||||
- ${config.prefix}commandgoeshere - Do something
|
||||
`;
|
||||
|
||||
message.channel.send(msg);
|
||||
}
|
||||
Reference in New Issue
Block a user