aoi.js - A powerful package to create Discord Bots with built-in string functions.
npm install discordaxo.jsThe most powerful string package to create a simple and fast Discord Bot.
[![NPM version][npm-image]][npm-url]
[![AoiJS Server][aoijs-server]][aoijs-server-url]
[![NPM downloads][download-image]][download-url]
[npm-image]: http://img.shields.io/npm/v/aoi.js.svg?style=flat-square
[npm-url]: http://npmjs.org/package/aoi.js
[download-image]: https://img.shields.io/npm/dt/aoi.js.svg?style=flat-square
[download-url]: https://npmjs.org/package/aoi.js
[aoijs-server]: https://img.shields.io/discord/773352845738115102?color=5865F2&logo=discord&logoColor=white
[aoijs-server-url]: https://aoi.js.org/invite
- Built-in support of database by default and ready for multipurpose.
- Built-in 600+ functions, simple and easy to learn.
- Simple to learn, all in string-based and compact.
- Support of extensions available to be used by the community.
node.js 16.6.0 or newer is required.
``bash`
npm install aoi.js
`bash`
yarn add aoi.js
`javascript
const aoijs = require("aoi.js")
const bot = new aoijs.AoiClient({
token: "Discord Bot Token",
prefix: "Discord Bot Prefix",
intents: ["MessageContent", "Guilds", "GuildsMessages"]
})
//Events
bot.onMessage()
//Command Example (ping)
bot.command({
name: "ping",
code: Pong! $pingms
})
//Slash Interaction Command Example (ping)
/*MUST EXECUTE FUNCTION FOR IT TO WORK
$createApplicationCommand[$guildID;ping;Pong!;true;slash]
*/
bot.interactionCommand({
name: "ping",
prototype: 'slash',
code: $interactionReply[Pong! $pingms]`
})
`php`
$authorID - Return the author ID/the userID who executed the function
It's fairly simple, by using $ as a sense of a function to execute, it's run by a command.$
By using after the function name, and its additional fields, (if any) it'll work as intended by it function.
Events are the most important factor in creating a Discord Bot. This helps developers create certain events to occur within their Client. There are several events within aoi.js, an example event is when the Client is ready and logged onto the API.
`javascriptCode to execute
bot.readyCommand({ //Event Command
channel: "Channel ID", //The channel where the Client will log. (optional)
code: //This can be a message or code to execute.`
})
Use this on your precaution, we do not endorse anything or affiliated with, we only add support towards it.
Do you want to make your Discord Bot different from others, possibly with the ability to play/stream music, it's simple and easy to use!
`php`
$playTrack[type;name] - To play a track from the available third parties supported.
More information in our documentation
- @akarui/aoi.music to enable Music Functions compatibility. (npm install @akarui/aoi.music`)