Merge pull request #126 from MSFTserver/patch-3

add command descriptions for !help
This commit is contained in:
Niko 2018-01-03 01:48:53 +01:00 committed by GitHub
commit 70e47d14ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,8 +9,8 @@ exports.commands = [
]; ];
exports.addrole = { exports.addrole = {
usage: "<role to add>", usage: "<role>",
description: "description of command", description: "Adds you to specified role",
process: function(bot, msg, suffix) { process: function(bot, msg, suffix) {
// Here the bot,msg and suffix is avaible, this function can be async if needed. // Here the bot,msg and suffix is avaible, this function can be async if needed.
//amsg.reply(rolelist.allowedroles.includes(suffix)); //amsg.reply(rolelist.allowedroles.includes(suffix));
@ -60,8 +60,8 @@ exports.addrole = {
} }
}; };
exports.delrole = { exports.delrole = {
usage: "<role to remove>", usage: "<role>",
description: "description of command", description: "Deletes your role specified",
process: function(bot, msg, suffix) { process: function(bot, msg, suffix) {
// Here the bot,msg and suffix is avaible, this function can be async if needed. // Here the bot,msg and suffix is avaible, this function can be async if needed.
let oldrole = msg.guild.roles.find("name", suffix); let oldrole = msg.guild.roles.find("name", suffix);
@ -104,7 +104,7 @@ exports.delrole = {
}; };
exports.roles = { exports.roles = {
usage: "", usage: "",
description: "description of command", description: "displays roles you can give yourself",
process: function(bot, msg, suffix) { process: function(bot, msg, suffix) {
// Here the bot,msg and suffix is avaible, this function can be async if needed. // Here the bot,msg and suffix is avaible, this function can be async if needed.
msg.channel.send({ msg.channel.send({