Difference between revisions of "Bot Playground/Events/script dialog"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:script_dialog}} <TTT_onlyinclude>...</TTT_onlyinclude> <syntaxhighlight lang="javascript"> Bot.on("script_dialog", function(event) { ... }); </syntaxhighlight>...")
 
Line 1: Line 1:
 
{{DISPLAYTITLE:script_dialog}}
 
{{DISPLAYTITLE:script_dialog}}
<TTT_onlyinclude>...</TTT_onlyinclude>
+
<onlyinclude>Fires when bot receives a scripted dialog</onlyinclude>
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">

Revision as of 15:22, 1 July 2016

Fires when bot receives a scripted dialog

Bot.on("script_dialog", 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 script_dialog
buttons The selection options (buttons), separated by a new line
channel The channel on which the dialog listen to.
owner_name The owner name from object that sent the dialog.
text The text in the dialog window
object_uuid The UUID of the object that sent the dialog.
object_name The name of the object that sent the dialog.

Example

...