Skip to content

Instantly share code, notes, and snippets.

@Slyrith
Created November 21, 2022 01:37
Show Gist options
  • Select an option

  • Save Slyrith/5f9580457a0d26e4e38cfa48a08ffb29 to your computer and use it in GitHub Desktop.

Select an option

Save Slyrith/5f9580457a0d26e4e38cfa48a08ffb29 to your computer and use it in GitHub Desktop.
Aoi.js v6.0.0 setup
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