It is repository for chat bot: @cyberw_bot
It is file header:
/*CMD
command: /test
help: this is help for ccommand
need_reply: [ true or false here ]
auto_retry_time: [ time in sec ]
answer: it is example answer for /test command
keyboard: button1, button2
aliases: /test2, /test3
CMD*/
See more
It is command code in JavaScript. Use Bot Java Script for logic in command.
For example:
Bot.sendMessage(2+2);
See more
You can store common code in the libs folder. File name - it is library name.
For example code in myLib.js:
function hello(){ Bot.sendMessage("Hello from lib!") }
function goodbye(name){ Bot.sendMessage("Goodbye, " + name) }
publish({
sayHello: hello,
sayGoodbyeTo: goodbye
})
then you can run in any bot's command:
Libs.myLib.hello()
Libs.myLib.sayGoodbyeTo("Alice")
See more
See other bots examples in the github or in the Bot Store
See API