Difference between revisions of "Bot Playground/Events/stop typing"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:stop_typing}} <onlyinclude>Fires when another avatar stops typing in IM to the bot.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.on("stop_typing", fun...") |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:stop_typing}} | {{DISPLAYTITLE:stop_typing}} | ||
− | <onlyinclude>Fires when another avatar stops typing in IM to the bot.</onlyinclude> | + | <onlyinclude>Fires when another avatar stops typing in IM to the bot. {{NotAvailableForQB}}</onlyinclude> |
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> |
Latest revision as of 07:51, 12 October 2022
Fires when another avatar stops typing in IM to the bot. Not available for QubicBot yet (?)
Bot.on("stop_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 stop_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("stop_typing", event => {
console.log(`${event.speaker_name} stopped typing`);
});
console.log("Bot is listening, IM something");