start_typing
From SmartBots Developers Docs
Revision as of 21:45, 11 October 2022 by NealB (Talk | contribs) (Created page with "{{DISPLAYTITLE:start_typing}} <onlyinclude>Fires when another avatar starts typing in IM to the bot.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.on("start_typing",...")
Fires when another avatar starts typing in IM to the bot.
Bot.on("start_typing", function(event) { ... });
Reference
This event comes with the following event object:
Variable | Required | Description | |
---|---|---|---|
event object properties: | |||
name | The name of the event in this case start_typing | ||
speaker_name | The name of the sender | ||
speaker_uuid | The UUID of the sender | ||
bot_slname | The name of the bot | ||
bot_uuid | The uuid of the bot |
Example
Bot.on("start_typing", event => {
console.log(`${event.speaker_name} started typing`);
});
console.log("Bot is listening, IM something");