Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

An package dedicated to aoi.js v6 which loads functions to simplify bot development

License

Notifications You must be signed in to change notification settings

dodoGames-basement/dodoplugins.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation notice

This package is no longer maintained and has since been discontinued. No new updates will be ever made after that as custom functions in aoi.js don't even work in the first place.

You're better off using aoi.js extensions instead as they're much better than this random package i made.

dodoplugins.js

An package dedicated to aoi.js v6 which loads functions to simplify bot development

Disclaimer

This package (dodoplugins.js) 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, instead request the support for it by either joining our support server or from Github Issues.

What is this

An package for aoi.js v6 as a plugin that loads some of the custom functions it has, for example $sendColoredLog!

Why does this exist?

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 dodoplugins.js was created as an simple project that loads custom functions it includes to aoi.

Setup

npm i dodoplugins.js@latest

This will install the npm version of the package.

You can also use other versions of the package such as:

// Beta version
npm i dodoplugins.js@beta
// Alpha version
npm i dodoplugins.js@alpha

You then load the package with the following

// Define clients
const { Plugins } = require("dodoplugins.js")
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.

Links

This is Optional, So Check Links at Your own Discretion.

Credits

the source code on how this was setup belongs to Kawaii#7615, thank him/her later for the aoi.js plugins tutorial later.

  • Kawaii#7615: for the aoi.js plugins tutorial later
  • Blur: for helping me on getting this package to work
  • InikoMatthewPro: for publishing the package on npm