[[:Template:Instant message]]
From SmartBots Developers Docs
Fires when bot receives a message from another avatar or in-world object.
Reference
This event comes with the following event object:
Variable | Required | Description | |
---|---|---|---|
Output: | |||
message | The text of the message |
Example
Bot.on("instant_message", function(event) {
console.log("bot received an IM:", event);
});