Difference between revisions of "TotalControl for LSL/Events/BOT EVENT LISTEN LOCAL CHAT"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:BOT_EVENT_LISTEN_LOCAL_CHAT}} <onlyinclude>Raised when Bot sees a message in local chat</onlyinclude> {{API Event Table}} {{API Variable Group|''event'' object...") |
|||
Line 13: | Line 13: | ||
<syntaxhighlight lang="lsl"> | <syntaxhighlight lang="lsl"> | ||
link_message( integer sender_num, integer num, string str, key id ) { | link_message( integer sender_num, integer num, string str, key id ) { | ||
− | /////////////////// Bot | + | /////////////////// Bot listen local chat event |
if(num==BOT_EVENT_LISTEN_LOCAL_CHAT) { | if(num==BOT_EVENT_LISTEN_LOCAL_CHAT) { | ||
Revision as of 09:33, 20 May 2017
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 | username: 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);
}
}