.aoi is a file extension created by me to make creating commands in AOI.JS easier.
Below we will have a list of commands for you to setup this "plugin".
Execute this command first:
npm i https://github.com/apenasigordev/dotaoi
After that, create a file called .env
, and put this:
TOKEN="YOUR BOT TOKEN"
Now go to the commands
folder and create the command you want.
NOTE: all commands needs starts with NAME {commandName}; ALIASES {["commandAliase1", "commandAliase2"] (optional)};
to set command name and aliases
Go to index.js
and on the last line put this:
aoiFile.loadCommands(bot, true) // Just add "true"
Now you can separate the files by categories, creating a file with the name of the category you want.
This is already set to true, but if you don't want categories, just remove it.
You also can change from .aoi
to .{something}
.
Go to index.js
and on the last line put this:
aoiFile.loadCommands(bot, true, ".owo") // Just add ".owo"
Now rename all .aoi
files extension to the file extension you put.