Skip to content
Calculus edited this page Aug 30, 2023 · 9 revisions

About

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

Installation

Node.js 18.0.0 or newer is required.

npm install frhd

Example usage

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);
Clone this wiki locally