Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@perdido/plugins-aoi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@perdido/plugins-aoi

Plugins for aoi.js

  • 0.1.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@perdido/plugins-aoi

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

Disclaimer

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.

What is this

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

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 @perdido/plugins-aoi was created as an simple project that loads custom functions it includes to aoi.

Setup

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.

Credits

This is a copy of dodogames.js, all the credit to him, the only diference are the custom functions.

Keywords

FAQs

Package last updated on 16 Jul 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc