@akarui/aoi.invite
v1.0.0
Published
An extension to handle invite system for aoi.js
Downloads
9
Readme
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']);