setup
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",//callbacks file. commandsfolder:"/commands/",//commands folder. statusfolder:"/status/"//statuses folder. })
how to use
const aoijs = require("aoi.js"); const { Handler } = require("aoi.js-plugins");
const bot = new aoijs.Bot({ token: "your very secret token", //Discord Bot Token prefix: "abcdefg", //Discord Bot Prefix intents: "all" //Discord Intents });