Skip to content

USERSATOSHI/documentation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

732 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.Bot({
  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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published