Created
November 21, 2022 01:37
-
-
Save Slyrith/5f9580457a0d26e4e38cfa48a08ffb29 to your computer and use it in GitHub Desktop.
Aoi.js v6.0.0 setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const aoijs = require("aoi.js") | |
| const bot = new aoijs.AoiClient({ | |
| token: "DISCORD BOT TOKEN", | |
| prefix: "DISCORD BOT PREFIX", | |
| intents: ["guilds", "guildMessages", "MessageContent"] | |
| }) | |
| //Events | |
| bot.onMessage() | |
| bot.onInteractionCreate() | |
| //Status | |
| bot.status({ | |
| text: "TEXT", | |
| type: "PLAYING", | |
| }) | |
| //Variable | |
| bot.variables({ | |
| variable: "value" | |
| }) | |
| //Command Example (ping) | |
| bot.command({ | |
| name: "ping", | |
| code: `Pong! $pingms` | |
| }) | |
| //Ready Event | |
| bot.readyCommand({ | |
| channel: "CHANNEL ID", | |
| code: `$log[Ready on $userTag[$clientID]]` | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment