Best and easy to use multi-purpose discord.js package.
Follow me: https://github.com/Hjgaming
Support Server: https://discord.gg/7wmb5x7qp4
- Advance bot stats
- No changes rn
- Must have latest discord.js
- Must have enabled [SERVER MEMBERS INTENT] in your bot to get exact numbers [You can enable it from https://discord.com/developers/applications/]
const { ServerStats , LoadNotification } = require("server-ping");
ServerStats:
- You must give the value of [ Discord , bot, GuildId, Statschannel ]
const { ServerStats , LoadNotification } = require("server-ping");
const Discord = require("discord.js");
const client = new Discord.Client()
client.on("ready", async () => {
LoadNotification();
console.log(`${client.user.tag} is now online.`);
});
client.on("ready", async () => {
const bot = client; //if you have <Client> as client
const GuildId = "Your-Guild-Id";
const Statschannel = "Stats-Channel-Id";
ServerStats(Discord , bot , GuildId , Statschannel)
})
client.login("BotToken");