2.7.8 • Published 3 years ago

androier.js v2.7.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

Table Of Contents

About

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

Installation

Node.js v12+ is required.

npm install androier.js

Examples

Setup

const Androierjs = require("androier.js")

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

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

//This command is not required
bot.readyCommand({
    channel: "", //Channel is not required.
    code: `$log[Ready on $userTag[$clientID]]` //Enter the code / message.
})

Handler

Command handler allowes you to make commands in sub folers and new files

bot.loadCommands(`./commands`) //Allowes you to make commands in new files

In new files you got to use this setup

module.exports = {
  name: "", //Command name
  code: ``//Code
}

Variables

What are variables?

Variables are Key-Value based data which is stored in the database, useful for Economy, Warning System, Leveling System, and much more 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()

You can find all callbacks if you go to https://discord.gg/KgBjaqxPw6

Additional Support

Music

Music system allowes you to execute music in voice channels.

Music Setup Example

bot.command({
name: "play", //Trigger name (command name)
code: `$playSong[Music Name;Something went wrong!]`
//Code
})
2.7.6

3 years ago

2.7.8

3 years ago

2.7.7

3 years ago

1.4.6

3 years ago

1.4.5

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.0

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago