aoi-handler
The simpler approach of loading commands in aoi.js via folder.
- Fixed some issues
Usage
botLoad(bot, './folder_name/');
Using it in aoi.js
const botLoad = require('aoi-handler');
const {AoiClient} = require("aoi.js");
const bot = new AoiClient({
token: "BOT_TOKEN",
prefix: "PREFIX",
intents: ["MessageContent", "Guilds", "GuildMessages"],
events: [
"onMessage",
"onInteractionCreate"
]
})
botLoad(bot, './folder_name/');
Made with