aoiblob.js-handler
v1.0.4
Published
AOIBlob.js comes with it again.
Downloads
3
Maintainers
Readme
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