Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aoijs/website
Official documentation website of aoi.js
https://github.com/aoijs/website
aoi aoi-js docs documentation
Last synced: about 1 month ago
JSON representation
Official documentation website of aoi.js
- Host: GitHub
- URL: https://github.com/aoijs/website
- Owner: aoijs
- License: mit
- Created: 2021-05-03T01:49:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:04:45.000Z (about 2 months ago)
- Last Synced: 2024-10-29T10:57:10.551Z (about 2 months ago)
- Topics: aoi, aoi-js, docs, documentation
- Language: MDX
- Homepage: http://aoi.js.org/
- Size: 762 MB
- Stars: 5
- Watchers: 2
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing-example.md
- License: LICENSE
Awesome Lists containing this project
README
## ❓ What is aoi.js?
aoi.js is a JavaScript library that is designed to make it easy to build Discord bots. It is open-source and free to
use, and provides a simple, easy-to-use interface for interacting with the Discord API and handling events. aoi.js is
suitable for beginners who are new to building bots, as well as experienced developers who want to save time and
streamline their workflow.## 🚀 Setup
```javascript
const { AoiClient } = require("aoi.js");const client = new AoiClient({
token: "Discord Bot Token",
prefix: "Discord Bot Prefix",
intents: ["MessageContent", "Guilds", "GuildMessages"],
events: ["onMessage", "onInteractionCreate"],
database: {
type: "aoi.db",
db: require("@aoijs/aoi.db"),
dbType: "KeyValue",
tables: ["main"],
securityKey: "a-32-characters-long-string-here"
}
});// Ping Command
client.command({
name: "ping",
code: `Pong! $pingms`
});
```### Interaction Command Setup
```javascript
const { AoiClient } = require("aoi.js");const client = new AoiClient({
token: "Discord Bot Token",
prefix: "Discord Bot Prefix",
intents: ["MessageContent", "Guilds", "GuildMessages"],
events: ["onMessage", "onInteractionCreate"],
database: {
type: "aoi.db",
db: require("@aoijs/aoi.db"),
dbType: "KeyValue",
tables: ["main"],
securityKey: "a-32-characters-long-string-here"
}
});// Create Interaction Ping Command
client.command({
name: "create",
code: `$createApplicationCommand[$guildID;ping;Pong!;true;true;slash]`
});
```## 🐛 Contribution
[Refer to contribution documentation for more information](https://github.com/aoijs/aoi.js/blob/v6/.github/CONTRIBUTING.md)
### 🧑💻 Aoi.js
[![aoijs/aoi.js](https://contrib.rocks/image?repo=aoijs/aoi.js)](https://github.com/aoijs/aoi.js)
### 📄 Documentation
[![aoijs/website](https://contrib.rocks/image?repo=aoijs/website)](https://github.com/aoijs/website)