Socket
Book a DemoInstallSign in
Socket

aoi.js-light

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

aoi.js-light

Aoi.js only lighter.

1.1.0
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

aoi.js

Aoi.JS-Light

NPM Downloads Discord Server

Table Of Contents

About

Aoi.JS-Light is a lighter version of Aoi.JS, where you can disable unused caches by making your bot consume less ram.

Original package: Aoi.JS

Examples

Setup

//This is light setup! (configurable cache)
const Aoijs = require("aoi.js-light")

const bot = new Aoijs.Cache({
    token: "TOKEN", //Discord Bot Token
    prefix: "!", //Customizable
    cache: {
        Guilds: true,
        Channels: false,
        Overwrites: false,
        Roles: false,
        Emojis: false,
        Presences: false
    }
});

bot.onMessage() //Allows to run Commands

bot.command({
name: "ping", //Trigger name (command name)
code: `$ping Pong!` //Code
})

Or

//This is normal setup! (with all cache)
const Aoijs = require("aoi.js-light")

const bot = new Aoijs.Bot({
token: "TOKEN", //Discord Bot Token
prefix: "!" //Customizable
})
bot.onMessage() //Allows to run Commands

bot.command({
name: "ping", //Trigger name (command name)
code: `$ping Pong!` //Code
})

Variables

What are variables?

Variables are Key-Value based data which is stored in the database, useful for Economy and Leveling system as it is allows you to save data.

bot.variables({
  VariableName1: "Value", //Returns "Value"
  VariableName2: "Value2" //Returns "Value2"
})

Callbacks

What are callbacks?

It's simple and easy process, it essentially allows you to trigger events, such as user joining a Guild. This will trigger an event, causing commands with supported type for each callbacks to be executed such as.

bot.joinCommand({
        channel: "Channel ID", //Enter a Channel ID
        code: `<@$authorID> just joined, welcome!` //This can be changed
})
bot.onJoined()

Additional Support

Slash Commands

With easy and simple functions, you can make Slash Commands with your Bots quick!

bot.command({
    name: "slash",
    code: `$createSlashCommand[$guildID;version;Returns Aoi.js Version]`
})
bot.interactionCommand({
    name: "version", 
    code: `$interactionReply[$packageVersion]`
})
bot.onInteractionCreate()

More Information in our Documentation

Music

With our powerful Package, we incorporated Music with several functions. We allowed customization and control over what you want.

Music Setup Example

bot.command({
name: "play", //Trigger name (command name)
code: `$playSong[song;leave vc time;defean (yes or no);leave when vc empty (yes/no);error]`
//Code
})

More Information in our Documentation

Aoi.JS was made by Aoi.JS Team

Contributing

Please read Contributing

For light support dm lrd#2774

Aoi.JS-Light was made by lrd#2774

FAQs

Package last updated on 11 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.