mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Merge pull request #64 from MSFTserver/patch-1
add more helping text to examples[done]
This commit is contained in:
commit
cdd33c1ab8
1 changed files with 20 additions and 18 deletions
|
@ -1,22 +1,24 @@
|
||||||
/*
|
/*
|
||||||
exports.commands = [
|
// Example #1 Command(use this to make your Commands with triggers like !demo)
|
||||||
"demo" // command that is in this file, every command needs it own export as shown below
|
exports.commands = [
|
||||||
]
|
"demo" // command name that will be used for next lines of code below
|
||||||
|
]
|
||||||
|
|
||||||
exports.custom = [
|
exports.demo = {
|
||||||
"initFunction"
|
usage: "<subcommand>", //command usage like !demo <@username>, exclude !demo
|
||||||
]
|
description: 'description of command', //the description of command for !help command
|
||||||
|
process: function(bot,msg,suffix){
|
||||||
|
// Here the bot,msg and suffix is available, this function can be async if needed.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
exports.demo = {
|
// Example #2 Function(use this to make your Functions that dont need trigger words unlike !demo)
|
||||||
usage: "<subcommand>",
|
exports.custom = [
|
||||||
description: 'description of command',
|
"myFunction" //change this to your function name
|
||||||
process: function(bot,msg,suffix){
|
]
|
||||||
// Here the bot,msg and suffix is avaible, this function can be async if needed.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.initFunction = function(bot) {
|
exports.myFunction = function(bot) {
|
||||||
// Other functions that needs to be ran once on bootup!
|
// Other functions that need to be ran once on bootup!
|
||||||
// For example a timed function and or some init stuff..
|
// For example a timed function and or some init stuff..
|
||||||
}
|
}
|
||||||
*/
|
*/
|
Loading…
Add table
Reference in a new issue