circle-exclamation
We've updated the domain to bit.lockyzdev.com please bookmark the new link!

desktop-arrow-downUpdating to Bit 2025.2

Plugin Count and Plugin List functions have been moved!

With bit now exporting the pluginLoader.js file and the functions within, we've officially deprecated the old plugin_count() and plugin_list() functions from Bit: Core.

Replacement Example

// Old Code Example
const core = require('bit/core')

const totalPlugins = core.plugin_count()
const pluginsList = core.plugin_list()

// New Code Example
const plugins = require('bit/plugins')

const totalPlugins = plugins.count()
const pluginsList = plugins.list()

New Plugin Functions

This version of Bit adds a few extra functions added to make interacting between plugins easier.

For example, the new plugins.is_active(id) function makes it MUCH easier to know if a plugin is installed and active.

You can find more information on these new functions in bit/plugins

Global "database" folder renamed to "data"

We've removed the "database" folder and replaced it with a standard "data" folder, this should be better representative of what the folder is actually for.

Experimental: Global Exports

triangle-exclamation

Within bits package.json file, we've now defined a global export, under bit/plugin/*. This means that any exported function within your plugins index.js (HAS to be named that way) can be accessed by importing "bit/plugin/PLUGINID". This should HOPEFULLY make inter-plugin compatibility MUCH better.

Example

Experimental: Definable Intents

triangle-exclamation

We've added the ability for plugins to force the bot to import required intents, before the bot defines the client. This feature should ONLY be used to define intents as it runs BEFORE bit defines the Discord Client, and other plugins.

For now, this feature is run through a second function inside your index.js file called define_intents()

Example

You'll also need to define some settings within your plugin.json file for this feature to work

Example

Experimental: Definable Node Modules

triangle-exclamation

We've added the ability to install node modules. This will allow your plugin to install node modules from NPM that your plugin needs.

Example

Last updated

Was this helpful?