Code Monkey home page Code Monkey logo

aoi.js's Introduction


aoi.js

aoi.js

Discord Server NPM Version NPM Downloads

About

aoi.js is a package with customization and ready-to-use functions to make Discord Bots with ease.

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

The replacement of dbd.js

Installation

Node.JS 16.6.0 or newer is required.

npm install aoi.js

Setting up

const aoijs = require("aoi.js")

const bot = new aoijs.Bot({
token: "TOKEN", //Discord Bot Token
prefix: "PREFIX", //Discord Bot Prefix
intents: ["GUILDS", "GUILD_MESSAGES"] //Discord Intents
})

//Events
bot.onMessage()

//Command Example
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: "TOKEN", //Discord Bot Token
    prefix: "PREFIX", //Discord Bot Prefix
    intents: ["GUILDS", "GUILD_MESSAGES"] //Discord Intents
})

//Events
bot.onMessage()

/*CREATING THE ACTUAL FUNCTION*/

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

  • A Team managed by Leref that oriented by NPM Packages Support by the Team.
  • In charge of development of aoi.js

Links

Open Source

aoi.js is available and open source for the community to explore and contribute for future updates.

Please read Contributing

aoi.js's People

Contributors

usersatoshi avatar leref avatar kino7916 avatar xzfirzal avatar dbthesecond avatar devspen avatar themarci avatar soudblox avatar dutchman-dev avatar yuzutheneko avatar masterguy35 avatar mustafaamsy avatar pranav-karthikeyan avatar rakejs avatar berat141 avatar itzleref avatar lightnerdev avatar eltuna avatar kubaturi avatar rilecraft avatar stickman1199 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.