"run"will execute when the user clicks the tile or executes the script via the Otto search bar.
- Returning a duration (in ms) will delay the closure of the flow wheel by the specified duration.
- Returning
true
leaves flow open. - Returning
false
closes flow immediately. - Omitting the return will default the close duration to 500ms.
run((event) => {
example_event = {
from: 'wheel' // where was the command sent from. Can be 'wheel' 'otto' or 'debugger'
}
return 1500;
});