Events
AdminBot raises events to inform your script about errors, group chat messages, and other occurrences.
To handle these events, use the LSL link_message event.
Parsing Events
The link_message event has the following syntax:
link_message(integer sender_num, integer num, string str, key id) {
if(num == SB_SETUP_SUCCESS) {
// handle successful setup
}
}num— contains the event codestrandid— values depend on the specific event
Refer to the table below for details.
Events List
Command | Description |
|---|---|
Command execution status | |
Raised when a command execution error occurs. | |
Raised when a command completes without errors. | |
Setup status | |
Raised when the group is successfully set (exists and not expired). | |
Raised when there is an error setting the group (not found, expired, etc). | |
Raised after AdminBot initializes. Delivers bot name and UUID. | |
Group status request | |
Reply from | |
Avatar status request | |
Reply from | |
Group chat events | |
Raised when bot successfully connects to group chat ( | |
Raised when a group chat message is received. | |
The numeric values for each event are available here.