1.0.4 • Published 1 year ago

aoiblob.js-handler v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

AOIBLOB.js-handler

Requires Node V16+

Downloading:

npm i aoiblob.js-handler@latest

Options:

  • Command Handler

Handler

Usage:

const aoijs = require("aoi.js");
const { Handler } = require("aoiblob.js-handler");

const bot = new aoijs.Bot({
token: "your bot token. don't leave it empty", //Discord Bot Token
prefix: "bolb", //Discord Bot Prefix
intents: "GuildMessages" //Discord Intents
});

const handler = new Handler({
  bot:bot, // your bot client. (required)
  aoijs:aoijs, // aoi.js variable you have defined as. (required)
  varfile:"vars.js", //variables file.
  callbackfile:"callbacks.js", //your callbacks file.
  commandsfolder:"/commands/", //where you put your commands in
  statusfolder:"/status/" //status folder..
})

vars.js:

module.exports = {
  blob: "love"
}

callbacks.js:

module.exports = (bot) => {
  bot.onMessage();
  bot.onInteractionCreate();
}

status folder: status1.js:

module.exports=({
  text:"bolb",
  type:"WATCHING",
  time:"12"
})

status2.js:

module.exports=({
  text:"i luv blob",
  type:"PLAYING",
  time:"12"
})

And that's it..

  • Developers bolb#3426
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago