Bots.Business - Help
Bots.Business - Help
Welcome
Getting started
Create bot from Google Table
Commands
Scenarios and BJS
Bot functions
Message broadcasting and editing
User functions
Command
Always running commands
Variables
Lists
Api functions
BB Admin functions
Admin Panel
Send HTTP request
Caching
Inline Bot
BJS Security
Good coding practices
Git
Google Analytics tracking
Iterations. How to reduce theys?
Limitations
Reports
Deep Linking - pass any params on Bot starting
How to link chat account with BB account?
BB Inspection
Protected bot
How to...
Libs
What it is - Libs?
Libs development
RefferalLib
Random
CurrencyConverter
ResourcesLib
Lang
QiwiPayments
BlockIO
Coinbase (CB)
CoinPayments (CP)
CryptoJS
GoogleApp
GoogleSpreadSheet
Webhooks lib
DateTimeFormat Lib
MembershipChecker
Store
BlockIOBot
Welcome bot
Help bot
SRB Demo Keyboard Tools
Powered by GitBook

Scenarios and BJS

What are these scenarios in the command?

Command can have some scenarios with BJS code.

BJS - it is "Bot Java Script" code.

It is Java Script!

Example. Calculating 2+2 and send result to the chat:

Bot.sendMessage(2+2);

On command executing, its scenarios are executed sequentially and isolated.

​

In BJS, you can use all the usual JS functions except setTimeout, setInterval

​

​

Previous
Auto Retry (AR)
Next
Bot functions
Last updated 2 years ago