aoijs / documentation

aoi.js - documentation

Home Page:https://aoi.js.org/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

aoi.js

Welcome to the page of aoi.js Documentation!

Discord Server NPM Version NPM Downloads

About

Aoi.JS is a package with simplified and ready-to-use functions for Discord Bot Developers to develop their own Discord Bots.

Aiming to be the easiest package to learn
It's swift and flexible using functions.

Open Source for the Community ❀️

Installation

Node.JS 16.6.0 or newer is required.

npm install aoi.js

Setting up

const aoijs = require("aoi.js")

const bot = new aoijs.AoiClient({
  token: "DISCORD BOT TOKEN",
  prefix: "DISCORD BOT PREFIX",
  intents: ["GUILDS", "GUILD_MESSAGES"]
})
//Events
bot.onMessage()

//Command Example (ping)
bot.command({
  name: "ping",
  code: `
  Pong! $pingms πŸ“
  `
});

//Ready Event
bot.readyCommand({
  channel: "",
  code: `
  $log[Ready on $userTag[$clientID]]
  `
});

//Slash Command Example (ping)
//$createApplicationCommand[$guildID;ping;Pong!;true;slash]
bot.interactionCommand({
  name: "ping",
  prototype: 'slash',
  code: `
  $interactionReply[Pong! $pingms πŸ“]
  `
});

Would you want to contribute?

We would like to build our documentary along with you to make it betters to everyone!

Before contributing please read our Contribution Guidelines.

Links

About

aoi.js - documentation

https://aoi.js.org/docs

License:Apache License 2.0