1.0.0 • Published 4 months ago

@akarui/aoi.invite v1.0.0

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

Installation

npm i @akarui/aoi.invite

Setup

const {AoiClient} = require("aoi.js");

const client = new AoiClient({
    intents: ["MessageContent", "Guilds", "GuildMessages"],
    events: ["onMessage", "onInteractionCreate"],
    prefix: "Discord Bot Prefix",
    token: "Discord Bot Token",
    database: {
        type: "aoi.db",
        db: require("@akarui/aoi.db"),
        dbType: "KeyValue",
        tables: ["main"],
        securityKey: "a-32-characters-long-string-here",
    }
});

// Ping Command
client.command({
    name: "ping",
    code: `Pong! $pingms`
});

const { InviteManager } = require("@akarui/aoi.invite");
const i = new InviteManager(bot,{
    sk: "a-32-characters-long-string-here",
},['inviteJoin','inviteLeave']);