Giter Club home page Giter Club logo

aoi.js's Introduction

aoijs

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


NPM downloads     AoiJS Server     NPM version     License     Website    



About

aoi.js is a JavaScript library that is designed to make it easy to build Discord bots.

It is open-source and free to use, and provides a simple, easy-to-use interface for interacting with the Discord API and handling events.

aoi.js is suitable for beginners who are new to building bots, as well as experienced developers who want to save time and streamline their workflow.

Features

  • 600+ Pre-built Functions: aoi.js comes packed with over 600 pre-built functions that empower you to create dynamic and interactive Discord bots with ease.
  • Built-in Custom Local Database: With aoi.js, you get a powerful custom local database out of the box.
  • Extensions for Added Functionality: Enhance your bots capabilities with aoi.js extensions like aoi.music and aoi.panel. These extensions make it simple to add music playback, interactive panels, and more to your bot.
  • Easy-to-Use and Beginner Friendly: aoi.js boasts a user-friendly syntax that is perfect for beginners. The simple $ prefix makes it easy to write commands and get your bot up and running quickly.

Setup

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

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

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

Adding Database

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

const client = new AoiClient({
    intents: ["MessageContent", "Guilds", "GuildMessages"],
    events: ["onMessage", "onInteractionCreate"],
    prefix: "Discord Bot Prefix",
    token: "Discord Bot Token",
    database: {
        type: "aoi.db",
        db: require("@akarui/aoi.db"),
        dbType: "KeyValue",
        tables: ["main"],
        securityKey: "a-32-characters-long-string-here",
    }
});

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

Command Handler

By default, aoi.js does not have a command handler. However, you can easily add one by using the loadCommands method.

client.loadCommands("./commands/", true);
  • ./commands/ is the directory where your commands are located.
  • true allows to log the commands in console.

Notices

  • Reading Functions: Currently it reads $ functions from bottom to top.

Official Extensions

Contributing

Refer to contribution documentation for more information

aoi.js's People

Contributors

leref avatar usersatoshi avatar faf4a avatar kino7916 avatar xzfirzal avatar dbthesecond avatar aho-emi avatar devspen avatar ethann2004 avatar themarci avatar soudblox avatar dutchman-dev avatar yuzutheneko avatar masterguy35 avatar azusfin avatar mustafaamsy avatar pranav-karthikeyan avatar dependabot[bot] avatar rakejs avatar berat141 avatar berticulousnert avatar lightnerdev avatar itzleref avatar eltuna avatar kirmiwdev avatar kubaturi avatar slyrith avatar rilecraft avatar stickman1199 avatar

Forkers

faf4a

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.