teleport_status

From SmartBots Developers Docs
Bot PlaygroundEvents
Revision as of 08:30, 12 October 2022 by Gg (Talk | contribs)

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

Fires when bot teleports, indicating various stages of the teleport. Not available for QubicBot yet (?)

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);
});