teleport_status

From SmartBots Developers Docs
Bot PlaygroundEvents
Revision as of 16:14, 11 October 2022 by NealB (Talk | contribs) (Created page with "{{DISPLAYTITLE:teleport_status}} <onlyinclude>Fires when bot starts teleporting.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.on("teleport_status", function(event) {...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Fires when bot starts teleporting.

Bot.on("teleport_status", 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 teleport_status
bot_name The name of the bot teleporting.
message The status message of the teleport
status The status of the teleport. (Start/Progress/Finished)
bot_uuid The UUID of the bot teleporting.
location The current location of the bot.

Example

console.log(`${process.name} started`);

Bot.on("teleport_status", (event) => {
    console.log(`teleport status event: `, event);
});