![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@perdido/plugins-aoi
Advanced tools
An package dedicated to aoi.js v6 which loads functions to simplify bot development
This package (@perdido/plugins-aoi
) is not made by official aoi.js developers, and so therefore, do not request support for the package's function in their official support server.
An package for aoi.js v6 as a plugin that loads some of the custom functions it has, for example $country
!
Back in the old days of custom functions in 2022, it was simple and such. However, considering that breaking changes were pushed to aoi in the past for custom functions, people got annoyed and generally being confused on what's being changed which honestly used to apply to custom functions with djs mode.
One day i decided that instead of being having to suffer to fix broken custom functions in the future over an breaking change (for multiple bots of mine at least), i said to myself, why not just add them into an package for easier process? And that's how @perdido/plugins-aoi
was created as an simple project that loads custom functions it includes to aoi.
npm i @perdido/plugins-aoi
You then load the package with the following
// Define clients
const { Plugins } = require("@perdido/plugins-aoi")
const { AoiClient } = require("aoi.js");
// Setup aoi.js first
const bot = new AoiClient({
token: "DISCORD BOT TOKEN",
prefix: "DISCORD BOT PREFIX",
intents: ["MessageContent", "Guilds", "GuildMessages"],
events: ["onMessage", "onInteractionCreate"],
database: {
type: "aoi.db",
db: require("@akarui/aoi.db"),
tables: ["main"],
path: "./database/",
extraOptions: {
dbType: "KeyValue"
}
}
});
// Loading the package
const plugins = new Plugins({ bot:bot });
plugins.loadPlugins();
This will enable all custom functions that were created in the package.
This is a copy of dodogames.js, all the credit to him, the only diference are the custom functions.
FAQs
Plugins for aoi.js
The npm package @perdido/plugins-aoi receives a total of 0 weekly downloads. As such, @perdido/plugins-aoi popularity was classified as not popular.
We found that @perdido/plugins-aoi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.