anos.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Anos.js

NPM Version NPM Downloads

Table Of Contents

About

Anos.js Is A Discord.js Framework For New Discord Bot Developers To Get A Grip In Bot Developing

Aoi.js Discord Invite Aiming to be the easiest package to learn
This is a repo of Aoi.js It's swift and flexible using functions.

Open Source for the Community ❤️

Installation

Node.js 12.0.0 or newer is required.

npm install anos.js

Examples

Setup

const Anosjs = require("anos.js")

const bot = new Anosjs.Bot({
token: "TOKEN", //Discord Bot Token
prefix: "!" //Customizable
})
bot.onMessage() //Allows to run Commands

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

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

Variables

What are variables?

Variables are Key-Value based data which is stored in the database, useful for Economy and Leveling system as it is allows you to save data.

bot.variables({
  VariableName1: "Value", //Returns "Value"
  VariableName2: "Value2" //Returns "Value2"
})

Callbacks

What are callbacks?

It's simple and easy process, it essentially allows you to trigger events, such as user joining a Guild. This will trigger an event, causing commands with supported type for each callbacks to be executed such as.

bot.joinCommand({
        channel: "Channel ID", //Enter a Channel ID
        code: `<@$authorID> just joined, welcome!` //This can be changed
})
bot.onJoined()

Additional Support

Slash Commands

With easy and simple functions, you can make Slash Commands with your Bots quick!

bot.command({
    name: "slash",
    code: `$createSlashCommand[$guildID;version;Returns Aoi.js Version]`
})
bot.interactionCommand({
    name: "version", 
    code: `$interactionReply[$packageVersion]`
})
bot.onInteractionCreate()

More Information in our Documentation

Music

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

Music Setup Example

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

More Information in our Documentation

Links

Aoi.JS was made by Aoi.JS Team Anos.JS Was Made By The: Aoi.JS TEAM

Contributing

Please read Contributing Not My Project

Package Sidebar

Install

npm i anos.js

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

706 kB

Total Files

684

Last publish

Collaborators

  • lucid_dev