Skip to content
/ website Public

Official documentation website of aoi.js

License

Notifications You must be signed in to change notification settings

aoijs/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 20, 2025
7efb182 Β· Mar 20, 2025
Oct 31, 2024
Oct 17, 2024
Mar 14, 2025
Oct 14, 2024
May 3, 2024
Jun 5, 2023
Aug 26, 2024
Jun 14, 2024
Mar 20, 2025
Jun 1, 2024
May 27, 2024
Jan 25, 2025
Jan 25, 2025
Mar 3, 2024

Repository files navigation


aoi.js

aoi.js Official Documentation

❓ What is aoi.js?

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.

πŸš€ Setup

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

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

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

Interaction Command Setup

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

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

// Create Interaction Ping Command
client.command({
  name: "create",
  code: `$createApplicationCommand[$guildID;ping;Pong!;true;true;slash]`
});

πŸ› Contribution

Refer to contribution documentation for more information

πŸ§‘β€πŸ’» Aoi.js

aoijs/aoi.js

πŸ“„ Documentation

aoijs/website