2.4.1 • Published 8 months ago

oxi.js v2.4.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

An aoi.js v5.5.5 fork

NPM | Docs

Installation

npm install oxi.js@latest

Setup

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 example

Function usage Example

$authorID - Returns the user ID who executed the function

How 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

2.4.1

8 months ago

2.4.0

8 months ago

2.3.1

9 months ago

2.3.0

9 months ago

2.2.0

9 months ago

2.0.0

9 months ago

1.5.0

9 months ago

1.4.3

9 months ago

1.4.2

9 months ago

1.3.11

9 months ago

1.3.1

9 months ago

1.3.0

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago