Uscript
From UBot Studio
(Difference between revisions)
| Line 10: | Line 10: | ||
'''addCommand(command):''' adds a command to uscript. | '''addCommand(command):''' adds a command to uscript. | ||
| − | '''[[Command()]] | + | '''==[[Command()]]==''' |
| + | |||
| + | Creates a new command object. | ||
== UICommand == | == UICommand == | ||
Revision as of 14:16, 5 January 2016
This api fixture provides access to UBot studio’s internal scripting engine.
Table(): creates a table
List(): creates a list
addCommand(command): adds a command to uscript.
==Command()==
Creates a new command object.
UICommand
The same as Command and includes:
getHTML
Should be set to a function that returns html for the command’s ui