The storage instance to be used by the bot.
The world info that is used to create the API to interact with the world.
The storage instance to be used by the bot.
The world that the bot is loaded on.
External dependencies that must be set before creating any instances of this class.
An event that fires when an extension is deregistered, if it has been registered. Will not fire when an extension is re-registered.
An event that fires whenever an extension is registered or re-registered.
An array of currently loaded extension ids
Shortcut for MessageBot.dependencies.fetch
An array of all registered extensions.
Adds an extension to this bot. Calls the init function supplied when registering the extension.
the id of the registered extension to add.
Gets the exports of an extension, returns undefined if the extension is not loaded.
the extension id to get exports from
Removes a currently loaded extension. Should not be used by published extensions unless the extension is an extension manager.
the id of the extension to remove
whether or not the extension should be completely removed, or just unloaded.
Sends a message to the world for this bot, should usually be used in place of world.send.
the message to send
Starts listening to chat.
Removes an extension initializer from the registry, can be used to prevent an extension from being loaded in multiple bots at once (generally a bad idea).
the id of the extension to deregister
Registers an extension that can be loaded by instances of the bot. Note: If an extension has already been loaded from a previously registered initializer, it will not be overwritten.
the extension ID, will be normalized to lower case.
the function to be called to set up the extension.
Generated using TypeDoc