-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Calculus edited this page Aug 30, 2023
·
9 revisions
frhd is a powerful Node.js module that allows you to easily interact with the Free Rider HD API.
- Object-oriented
- Predictable abstractions
- Performant
- 99.99% coverage of the Free Rider HD API
Node.js 18.0.0 or newer is required.
npm install frhd
Install frhd:
npm install frhd
Create a simple example bot:
import { Client } from 'frhd';
const client = new Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.username}!`);
});
client.on('trackCommentMention', data => {
const comment = data.comment;
if (comment.message.startsWith('ping')) {
comment.reply('pong');
}
});
client.login(TOKEN);
A powerful library for interacting with the Free Rider HD API