Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 2.34 KB

File metadata and controls

83 lines (55 loc) · 2.34 KB
description
Welcome to Aoi.JS Documentation Page - Functions / Callbacks

Introduction

Aoi.JS

Discord Server NPM Version NPM Downloads

About

Aoi.JS is a package with simplified and ready-to-use functions for Discord Bot Developers to develop their own Discord Bots.

Aiming to be the easiest package to learn
It's swift and flexible using functions.

Open Source for the Community ❤️

Installation

Node.JS 12.0.0 or newer is required.

npm install aoi.js

Example

const aoijs = require("aoi.js")

const bot = new aoijs.Bot({
token: "TOKEN", //Discord Bot Token
prefix: "PREFIX" //Discord Bot Prefix
})
bot.onMessage() //Allows to execute Commands

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

bot.readyCommand({
    channel: "", //You can use this or not
    code: `$log[Ready on $userTag[$clientID]]` //Example Ready on Client
})

Optional packages

  • @discordjs/opus for encoding, primarily used for Music (npm install @discordjs/opus)
  • ffmpeg-static for allowing Music Filters to run smoothly (npm install ffmpeg-static)
  • danbot-hosting for posting stats to their API (npm install danbot-hosting)

Music Integration

With our powerful Package, we incorporated Music with several functions. We allowed customization and control over what you want.

Music Example

bot.command({
name: "play",
code: `$playSong[Music Name;Something went wrong!]`
})

More Information in our Documentation

Links

Contributing

Please read Contributing