BOT_EVENT_LISTEN_IM

From SmartBots Developers Docs
TotalControl for LSLEvents
Revision as of 08:11, 20 May 2017 by Chevonn Edelmann (Talk | contribs) (Created page with "{{DISPLAYTITLE:BOT_EVENT_LISTEN_IM}} <onlyinclude>Raised when Bot receives an instant message</onlyinclude> {{API Event Table}} {{API Variable Group|''event'' object properti...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 setup success event
    if(num==BOT_EVENT_LISTEN_IM) {

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