Repository structure
Last updated
Was this helpful?
Last updated
Was this helpful?
You can make export for any free bot in the Store. Just install it.
It is good for practice.
Please see
File name - it is command name (But it can be rewritten in command description)
For commands with "/" (for example command "/start") file name is "_start"
Command can have: name
, help
, aliases
(second names), answer
, keyboard
, scnarios
(for simple logic) and other options.
If the command has a folder - it is located in a folder on the disk with the same name
It is optional file header:
multiline also supported. For example for answer:
It is command code in JavaScript. Use Bot Java Script for logic in command.
For example:
Bot.sendMessage(2+2);
You can store common code in the libs folder
See
See
See