mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Merge pull request #126 from MSFTserver/patch-3
add command descriptions for !help
This commit is contained in:
commit
70e47d14ff
1 changed files with 5 additions and 5 deletions
|
@ -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({
|
||||||
|
|
Loading…
Add table
Reference in a new issue