0.0.2 ā¢ Published 2 years ago
bladelist.gg v0.0.2
to search a large and diverse list of bots and servers to help spice up your discord experience.
š Homepage
Install
npm i bladelist.gg or yarn add bladelist.gg3
Usage
const bladelist = require('bladelist.gg')
const { Client } = require('discord.js')
const bot = new Client({
intents: [
"GUILDS",
"GUILD_MEMBERS",
"GUILD_BANS",
"GUILD_EMOJIS_AND_STICKERS",
"GUILD_INTEGRATIONS",
"GUILD_WEBHOOKS",
"GUILD_INVITES",
"GUILD_VOICE_STATES",
"GUILD_PRESENCES",
"GUILD_MESSAGES",
"GUILD_MESSAGE_REACTIONS",
"GUILD_MESSAGE_TYPING",
"DIRECT_MESSAGES",
"DIRECT_MESSAGE_REACTIONS",
"DIRECT_MESSAGE_TYPING",
],
})
bot.on("ready", () => {
const bl = new bladelist(
bot, // Your bot
"key", // Your api key
{
interval: 300000 // How offten you want to post to bladelist.gg
}
)
bl.on("ready", (message) => console.log(message)) // When bladelist is ready
bl.on("error", (message) => console.log(message)) // When a error goes on.
bl.on("post", (message) => console.log(message)) // When a post to bladelist goes right.
setInterval(() => {
bl.update(bot.guilds.cache.size)
}, 200000) // This is too update the guilds count in the package.
})
bot.login("your token")
Author(s)
š¤ Nao š¤ Bubbly
- Github: Press here!
Show your support.
Give a āļø if this project helped you!