Bots.Business - Help
  • Welcome
  • Getting started
  • Create bot from Google Table
  • App
    • Reset or Update Your Password
  • Commands
    • Answer
    • Aliases
    • Keyboard
    • Groups
    • Wait for answer
    • Auto Retry (AR)
  • Coding: BJS
    • Variables
    • Bot functions
    • Message broadcasting and editing
    • User functions
    • Properties
    • Always running commands
    • Error command: "!"
    • Lists
      • Migration from properties to list
    • Api functions
    • BB Admin functions
    • Admin Panel
    • Send HTTP request
    • Web App
    • Caching
    • Inline Bot
    • BJS Security
    • Good coding practices
    • Top errors
  • Git
    • Import bot from Git repository
    • Export bot to Git repository
    • Repository structure
    • File: bot.json
    • Automatic importing on Git push
  • Iterations. How to reduce theys?
  • Limitations
  • Cloud
  • Reports
  • Deep Linking - pass any params on Bot starting
  • How to link chat account with BB account?
  • BB Inspection
  • Protected bot
  • VS Code
  • How to...
  • Smart Bot
    • Overview
    • Lang File
    • SmartBot
    • SmartTasker
    • Amount Dialog
  • Libs
    • What it is - Libs?
    • Libs development
    • RefferalLib
    • ResourcesLib
    • Random
    • MembershipChecker (MCL)
    • Cooldown Lib
    • CurrencyConverter
    • Lang
    • TopBoardLib
    • QiwiPayments
    • Coinbase (CB)
    • CoinPayments (CP)
    • OxaPay
    • CryptoJS
    • CurrencyQuote
    • GoogleApp
    • GoogleTableSync
    • Guard
    • Webhooks lib
    • DateTimeFormat Lib
  • Store
    • BB Point Bot
    • Welcome bot
    • Help bot
    • SRB Demo Keyboard Tools
Powered by GitBook
On this page
  • bot.json file
  • Commands - in commands folder
  • Libraries - in libs folder

Was this helpful?

  1. Git

Repository structure

PreviousExport bot to Git repositoryNextFile: bot.json

Last updated 5 years ago

Was this helpful?

You can make export for any free bot in the Store. Just install it.

It is good for practice.

bot.json file

Please see

Commands - in commands folder

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

Command description

It is optional file header:

/*CMD
  command: /test
  help: this is help for ccommand
  need_reply: [ true or false here ]
  auto_retry_time: [ time in sec ]
  folder: MyFolder
  answer: it is example answer for /test command
  keyboard: button1, button2
  aliases: /test2, /test3
CMD*/

Command description - it is optional block.

multiline also supported. For example for answer:

/*CMD
    <<ANSWER
test answer
with several
lines
  ANSWER
CMD*/

You can have only answer (or others) key in the command description. All keys - optional

Command body

It is command code in JavaScript. Use Bot Java Script for logic in command.

For example:

Bot.sendMessage(2+2);

Libraries - in libs folder

You can store common code in the libs folder

See

See

See

this
more
more
more