BOT_EVENT_LISTEN_LOCAL_CHAT

Raised when the Bot sees a message in local chat.

Reference

This event comes with the following event object:

Variable

Description

str

Speaker name and message in the format speaker name: message

id

UUID of the speaker

Example

link_message( integer sender_num, integer num, string str, key id ) {
    /////////////////// Bot listen local chat event
    if(num==BOT_EVENT_LISTEN_LOCAL_CHAT) {
    	llOwnerSay("Local chat from bot: " + str);
    }
}