Xartashah
English
| online |
Aerielle Kiyori
English
| offline |
Anomelli Mellow
English
| offline |
Glaznah Gassner
English, Russian
| offline |
Kaitlynn Rizzo
English
| offline |
Makaylah Wurgle
English
| offline |
NealB
English, Hindi
| offline |
Rehnaeaislinn
English
| offline |
Sammyredfire
English
| offline |
TwixiChardonnay
English
| offline |
show offline managers | |
English, Hindi, Russian |
Have a question? Ask at SmartBots DevPortal!
DevPortal is a blog and forum for developers. Ask your questions to get a prompt reply!
SBSL supports two types of variables:
User variables are script-wide variables which hold their values for unlimited time. Here's the short example of SBSL code:
# Define user variables var $my_counter var $last_contact chat_message { # increase the counter $my_counter++ set $last_contact $speaker_name # report to the owner im Glaznah Gassner Chat messages received so far: $my_counter, last message by $last_contact }
Each user variable much be defined before usage. The variable is being defined above all events using the var keyword.
var $my_counter
There are two ways to set the variable value:
$my_counter++ set $last_contact $speaker_name
The user variable can be used as any other system variable within a command:
im Glaznah Gassner Chat messages received so far: $my_counter, last message by $last_contact
The variable value is being stored forever, despite of bot restarts, expirations or other factors.