From 97b730f3baab49bbcbcc888a751fafc31d36b5a6 Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Fri, 22 Dec 2017 23:11:31 -0800 Subject: [PATCH 1/2] add command descriptions for !help --- bot/modules/rolesetter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/modules/rolesetter.js b/bot/modules/rolesetter.js index 589721f..7045aee 100644 --- a/bot/modules/rolesetter.js +++ b/bot/modules/rolesetter.js @@ -10,7 +10,7 @@ exports.commands = [ exports.addrole = { usage: "", - description: "description of command", + description: "Adds you to specified role", process: function(bot, msg, suffix) { // Here the bot,msg and suffix is avaible, this function can be async if needed. //amsg.reply(rolelist.allowedroles.includes(suffix)); @@ -61,7 +61,7 @@ exports.addrole = { }; exports.delrole = { usage: "", - description: "description of command", + description: "Deletes your role specified", process: function(bot, msg, suffix) { // Here the bot,msg and suffix is avaible, this function can be async if needed. let oldrole = msg.guild.roles.find("name", suffix); @@ -104,7 +104,7 @@ exports.delrole = { }; exports.roles = { usage: "", - description: "description of command", + description: "displays roles you can give yourself", process: function(bot, msg, suffix) { // Here the bot,msg and suffix is avaible, this function can be async if needed. msg.channel.send({ From 3783fc994b84f49ed85af69b17a20b55942a8ba8 Mon Sep 17 00:00:00 2001 From: MSFTserver Date: Fri, 22 Dec 2017 23:13:25 -0800 Subject: [PATCH 2/2] fix usage as we specify it in description --- bot/modules/rolesetter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/modules/rolesetter.js b/bot/modules/rolesetter.js index 7045aee..779854c 100644 --- a/bot/modules/rolesetter.js +++ b/bot/modules/rolesetter.js @@ -9,7 +9,7 @@ exports.commands = [ ]; exports.addrole = { - usage: "", + usage: "", description: "Adds you to specified role", process: function(bot, msg, suffix) { // Here the bot,msg and suffix is avaible, this function can be async if needed. @@ -60,7 +60,7 @@ exports.addrole = { } }; exports.delrole = { - usage: "", + usage: "", description: "Deletes your role specified", process: function(bot, msg, suffix) { // Here the bot,msg and suffix is avaible, this function can be async if needed.