Code Monkey home page Code Monkey logo

aoi.js's Introduction

aoijs

aoi.js

The most powerful string package to create a simple and fast Discord Bot.

NPM downloads AoiJS Server NPM version

View Documentation

Features

  • Command handler: Define and manage commands for your bot using the LoadCommands method. Modify or add new functionality easily.
  • Utility functions: Save time and effort with ready-made solutions for common tasks such as sending messages and checking user permissions.
  • Interactive commands: Allow users to interact with your bot using a special syntax in their messages. Flexible and natural interaction.
  • Custom event handlers: Customize the behavior of your bot in response to different events, such as message updates and user joins.

Installation

node.js 16.9.0 or newer is required.

npm install aoi.js
yarn add aoi.js

Setup

const { AoiClient } = require("aoi.js")

const bot = new AoiClient({
token: "Discord Bot Token",
prefix: "Discord Bot Prefix",
intents: ["MessageContent", "Guilds", "GuildMessages"],
events: ["onMessage"]
})

//Ping Command Example
bot.command({
name: "ping",
code: `Pong! $pingms`
})

Function usage Example

$authorID - Return the author ID/the userID who executed the function

How does it work?

aoi.js uses the $ symbol as a way to execute functions. To use a function, simply type $ followed by the function name and any additional fields (if required).

Events

Events are an important part of creating Discord bots. aoi.js includes several events that allow you to customize the behavior of your bot in response to different situations.

For example, you can use the readyCommand event to specify what should happen when the bot is ready and logged onto the API:

bot.readyCommand({ //Event Command
    channel: "Channel ID", //The channel where the Client will log. (optional)
    code: `Code to execute` //This can be a message or code to execute.
})

Music Integration

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!

$playTrack[type;name] - To play a track from the available third parties supported. 

More information in our documentation

Optional Extensions

  • @akarui/aoi.music to enable Music Functions compatibility. (npm install @akarui/aoi.music)
  • @akarui/aoi.panel A developer panel for aoi.js (npm install @akarui/aoi.panel)

Links

aoi.js's People

Contributors

usersatoshi avatar leref avatar kino7916 avatar xzfirzal avatar dbthesecond avatar devspen avatar themarci avatar soudblox avatar dutchman-dev avatar yuzutheneko avatar masterguy35 avatar azusfin avatar mustafaamsy avatar pranav-karthikeyan avatar rakejs avatar berat141 avatar lightnerdev avatar itzleref avatar eltuna avatar kirmiwdev avatar kubaturi avatar slyrith avatar rilecraft avatar stickman1199 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.