BOT_EVENT_LISTEN_IM

From SmartBots Developers Docs
Jump to: navigation, search

Raised when Bot receives an instant message

Reference

This event comes with the following event object:

Variable Required Description
event object properties:
str username: message
id uuid of sender

Example

link_message( integer sender_num, integer num, string str, key id ) {
    /////////////////// Bot IM event
    if(num==BOT_EVENT_LISTEN_IM) {

    	llOwnerSay("IM from bot: " + str);
    }
}