0.0.1 • Published 1 year ago

luna.invite v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Installation

npm i luna.invite

Setup

const {LunaClient} = require("luna.js");

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

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

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