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']);