Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index.js :
- const { AoiClient, LoadCommands } = require("aoi.js")
- const bot = new AoiClient({
- token: "YOUR TOKEN HERE",
- prefix: [
- `$getVar[Prefix]`,
- `<@$clientID>`
- ],
- events: [
- "onMessage",
- "onInteractionCreate"
- ],
- intents: [
- "Guilds",
- "GuildMessages",
- "MessageContent",
- "GuildMembers"
- ]
- })
- bot.variables(require("./handler/variables.js"))
- const loader = new LoadCommands(bot)
- loader.load(bot.cmd, "./Commands/")
- bot.readyCommand({
- channel: "",
- code: `$log[Ready as $userTag[$clientID]]`
- })
- variables.js inside handler folder :
- module.exports = ({
- "Prefix": "."
- })
Advertisement
Add Comment
Please, Sign In to add comment