aoi.js

aoi.js - A powerful package to create Discord Bots with built-in string functions.

Usage no npm install needed!

<script type="module">
  import aoiJs from 'https://cdn.skypack.dev/aoi.js';
</script>

README

aoi.js

aoi.js

Discord Server NPM Version NPM Downloads

Features

  • Built-in support of Music Functions
  • Built-in support of multiple interactions commands
  • Built-in support of Custom Functions Integrated
  • Optimized and customizable
  • 500+ built-in functions available

The replacement of dbd.js

Installation

Node.JS 16.6.0 or newer is required.

npm install aoi.js

Example

const aoijs = require("aoi.js")

const bot = new aoijs.Bot({
token: "DISCRD BOT TOKEN",
prefix: "DISCRD BOT PREFIX",
intents: ["GUILDS", "GUILD_MESSAGES"]
})

//Events
bot.onMessage()

//Command Example (ping)
bot.command({
name: "ping",
code: `Pong! $pingms`
})

//Ready Event
bot.readyCommand({
    channel: "",
    code: `$log[Ready on $userTag[$clientID]]`
})

Custom Functions for Intermediate Developers

With the latest feature of aoi.js v5.0.0 and above, which enables Developers to create their own custom function built-in and easy.

/*THIS IS JUST AN EXAMPLE IN YOUR MAIN FILE*/

const aoijs = require("aoi.js")

const bot = new aoijs.Bot({
token: "DISCRD BOT TOKEN",
prefix: "DISCRD BOT PREFIX",
intents: ["GUILDS", "GUILD_MESSAGES"]
})

//Events
bot.onMessage()

/*CREATING THE ACTUAL FUNCTION*/
/*EXAMPLE OF MAKING $authorOnlyButton*/

bot.functionManager.createCustomFunction({
name : '$authorOnlyButton', //FUNCTION NAME 
params : ['index','label','style','customId','disabled','emoji'],//THE TYPE OF PARAMS
type : 'aoi.js', //TYPE METHOD
code : ` 
$addButton[{index};{label};{style};{customId}_$authorId;{disabled};{emoji}]
` //THE ACTUAL CODE IT WILL BE RETURN
})

/*ONLY EXPERIENCED WITH UNDERSTANDING OF AOIJS SHOULD USE*/

/*BY USING CUSTOM FUNCTION WE ARE'T OBLIGED OF WHAT HAPPENS TO YOUR CLIENT*/

/*WITH THIS FUNCTION MANAGER IT JUST CREATED $authorOnlyButton function*/

Optional packages

  • ffmpeg-static for allowing Music Filters to run smoothly (npm install ffmpeg-static)

Akarui Development


akarui

Akarui Development - A Development Team with experienced Developers, created by Leref creating easy and simple packages

Links