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 = {
usage: "<role to add>",
description: "description of command",
usage: "<role>",
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));
@ -60,8 +60,8 @@ exports.addrole = {
}
};
exports.delrole = {
usage: "<role to remove>",
description: "description of command",
usage: "<role>",
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({