Difference between revisions of "AdminBot for LSL/Commands/SB STATUS QUERY"
From SmartBots Developers Docs
m (Gg moved page AdminBot for Groups/Commands/SB STATUS QUERY to AdminBot for LSL/Commands/SB STATUS QUERY) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
<onlyinclude>Queries the AdminBot-selected group status (useful to determine the subscription length). Result is being returned using [[AdminBot for Groups/Events|SB_STATUS_REPLY]] event</onlyinclude> | <onlyinclude>Queries the AdminBot-selected group status (useful to determine the subscription length). Result is being returned using [[AdminBot for Groups/Events|SB_STATUS_REPLY]] event</onlyinclude> | ||
− | {{ | + | {{AdminBot Variables Table|command=SB_STATUS_QUERY}} |
{{AdminBot Required Vars|SB_STATUS_QUERY}} | {{AdminBot Required Vars|SB_STATUS_QUERY}} | ||
Line 11: | Line 11: | ||
{{AdminBot Event after Command|SB_STATUS_QUERY|SB_STATUS_REPLY}} | {{AdminBot Event after Command|SB_STATUS_QUERY|SB_STATUS_REPLY}} | ||
− | {{AdminBot Event after Command Entry|str}} first line - group status code (see all codes [[ | + | {{AdminBot Event after Command Entry|str}} first line - group status code (see all codes [[AdminBot_for_Groups/Documentation/Status_Codes|here]]) |
second line - group expiration date | second line - group expiration date | ||
{{AdminBot Event after Command Entry|id}} group UUID | {{AdminBot Event after Command Entry|id}} group UUID | ||
{{AdminBot Event after Command End}} | {{AdminBot Event after Command End}} | ||
− | |||
− | |||
{{AdminBot for Groups Commands - standard footer}} | {{AdminBot for Groups Commands - standard footer}} |
Latest revision as of 13:11, 12 May 2017
Queries the AdminBot-selected group status (useful to determine the subscription length). Result is being returned using SB_STATUS_REPLY event
// Command usage:
llMessageLinked(LINK_SET, SB_STATUS_QUERY, string str, key id);
API parameters
llMessageLinked function accepts str and id parameters. Their meaning for SB_STATUS_QUERY is explained below:
Variable | Required | Description.
| |
---|---|---|---|
str | yes | -- | |
id | yes | -- |
Return value
The result of this command will be returned to your script using SB_STATUS_QUERY event:
link_message(integer sender, integer num, string str, key id) {
...
}
Where: | |||
sender | link number of a sender prim | ||
num | SB_STATUS_QUERY | ||
str | first line - group status code (see all codes here)
second line - group expiration date | ||
id | group UUID |