Package Exports
- oxi.js
- oxi.js/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (oxi.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
npm install oxi.js@latestSetup
const oxi = require("oxi.js");
const client = new oxi.Bot({
token: "Your token",
prefix: "Your prefix",
intents: ["GUILDS", "GUILD_MESSAGES"]
});
client.onMessage();
client.command({
name: "ping",
code: `Pong! $pingms`
}); // Command exampleFunction usage Example
$authorID - Returns the user ID who executed the functionHow does it work?
Simple! By using $ as a sense of a function to execute, it'll be run by a command. If you use $ after the function name, and its additional fields (if any), it'll work as intended.
Events
This helps developers create certain events to occur within their Client. There are several events within oxi.js, an example event is when the Client is ready:
client.readyCommand({ // Event Command
channel: "", // The channel for logging (Optional)
code: `$log[The bot is ready!]` // This will log to the console "The bot is ready!"
})Made by OxiProjects