An unofficial package used to interact with the Radar Bot Directory API
You will need to have your bot listed on the Radar Bot Directory for all the functions to work, otherwise you're going to get some errors.
This package was developed by Yoshiboi18303
const Discord = require("discord.js");
const Radar = require("radarbots.js");
const client = new Discord.Client({
intents: Object.values(Discord.Intents.FLAGS),
});
const radar = new Radar(client, "Your Radar Bot Directory Token");
client.on("ready", async () => {
console.log("The client is ready!");
console.log(await radar.stats(client.guilds.cache.size));
});
client.login("Your token goes here");
console.log(await radar.botWidget());
const Discord = require("discord.js");
const Radar = require("radarbots.js");
const client = new Discord.Client({
intents: Object.values(Discord.Intents.FLAGS),
});
const radar = new Radar(client, "Your Radar Bot Directory Token");
client.on("ready", async () => {
console.log("The client is ready!");
console.log(await radar.stats(client.guilds.cache.size, 1, true));
});
client.login("Your token goes here");
This package could be really buggy (as I'm shitty at JS), so any bug reports would be appreciated.