Do you need my help? Visit our Discord server.
npm i gohlist.js --save
yarn add gohlist.js
Token can be found at: https://list.gohbot.live/bot/:botId/edit
const GohList = require('gohlist.js');
const dbl = new GohList();
const { Client, Collection, GatewayIntentBits } = require("discord.js");
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
],
});
client.on('ready', () => {
let token = 'TOKEN for API GohList'
let guildCount = client.guilds.cache.size;
let shardCount = 1;
dbl.stats(token, guildCount, shardCount, () => console.log("Stats updated on GohList.")); // => Stats updated on Gohlist.
})
client.login('TOKEN');