5.0.5 • Published 2 years ago
aby.js v5.0.5
About
aby.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
Installation
Node.JS 16.6.0 or newer is required.
npm install aby.js
Setting up
const abyjs = require("aby.js")
const bot = new abyjs.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 aby.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 abyjs = require("aby.js")
const bot = new abyjs.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 : 'aby.js', //TYPE METHOD
code : `
$addButton[{index};{label};{style};{customId}_$authorId;{disabled};{emoji}]
` //THE ACTUAL CODE IT WILL BE RETURN
})
/*ONLY EXPERIENCED WITH UNDERSTANDING OF abyJS 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
)
Aby Development
- A Team managed by Leref that oriented by NPM Packages Support by the Team.
- In charge of development of aby.js
Links
Close Source
aby.js is available and close source for the community to explore and contribute for future updates.
Please read Contributing