This package has been deprecated

Author message:

This package has a major bug with TypeScript and will not be updated anymore. Please use @yoshiboi18303/radarcord-js instead.

@yoshiboi18303/radarbots.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Radarbots.js

An unofficial package for interacting with the Radar Bot Directory API, rewritten to TypeScript.


Table of Contents

Features

Installation

Usage

License

Note


Features

  • Actual TypeScript support (not provided in the old package).

  • Support for the new site URL (located here).

  • Autoposting stats supported (not provided in the old package).


Installation

NPM:

npm install @yoshiboi18303/radarbots.js

Yarn:

yarn add @yoshiboi18303/radarbots.js

PNPM:

pnpm install @yoshiboi18303/radarbots.js

Usage

import Discord from "discord.js";
import Radar from "@yoshiboi18303/radarbots.js";

const client = new Discord.Client({
  intents: new Discord.IntentsBitField(["Guilds"]),
});
const radar = new Radar(client, "your token goes here");

client.on("ready", async () => {
  console.log("The client is ready!");

  // Post stats to the API
  await radar.postStats().catch(console.error);
});

// Login to Discord
client.login("your bot token");

More examples in the examples


License

This package is licensed with the MIT License.


Note

This is my first attempt at TypeScript support, so don't expect perfection, if you find any issues, please open and issue and/or let me know.


Made with ❤️ (and TypeScript) by Yoshiboi18303.

Package Sidebar

Install

npm i @yoshiboi18303/radarbots.js

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.98 kB

Total Files

4

Last publish

Collaborators

  • yoshiboi18303