Welcome to the page of aoi.js Documentation!
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 ❤️
Node.JS 16.6.0 or newer is required.
npm install aoi.js
const aoijs = require("aoi.js")
const bot = new aoijs.AoiClient({
token: "DISCORD BOT TOKEN",
prefix: "DISCORD 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]]
`
});
//Slash Command Example (ping)
//$createApplicationCommand[$guildID;ping;Pong!;true;slash]
bot.interactionCommand({
name: "ping",
prototype: 'slash',
code: `
$interactionReply[Pong! $pingms 🏓]
`
});
We would like to build our documentary along with you to make it betters to everyone!
Before contributing please read our Contribution Guidelines.