Starts/stops listening to the group chat. Messages will come to you with SB_CHAT_MESSAGE event.
- Requires group chat monitoring to be enabled on your group
The following table shows input values (you send them with the API call) and returned output values.
llMessageLinked( LINK_SET, SB_CHAT_LISTEN, string str, key id )
|str||yes|| 1 to start listening
0 to stop
This command instructs AdminBot to start listening on the group chat. The group chat messages will be passed to your script using SB_CHAT_MESSAGE event.
After connecting to the group chat script will receive SB_CHAT_SUCCESS event.
There's several conditions which may prevent AdminBot from connecting to the group chat. Your script will receive SB_COMMAND_FAILED event with the following data:
- event SB_COMMAND_FAILED, status code SERVICE_UNAVAILABLE
Reason: Your SmartBots subscription does not include Group Chat Control
Solution: enable the Group Chat Control service for the group.
- event SB_COMMAND_FAILED, status code CHAT_LISTEN_FAILED
Reason: SL can't provide the HTTP listener for the script
Solution: this can happen for extremely crowded and overloaded sims. The only solution is to move to another sim.
See AdminBot for Groups/Examples/Group chat listener for simple chat relay.