BOT_EVENT_LISTEN_LOCAL_CHAT

From SmartBots Developers Docs
Jump to: navigation, search

Raised when Bot sees a message in local chat

Reference

This event comes with the following event object:

Variable Required Description
event object properties:
str speaker name: message
id uuid of 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);
    }
}