dhjs-staged

2.0.2 • Public • Published

DogeGarden logo

STAGING
Client-side implementation of DogeHouse API. 🐶

discord - users online


Staging Version

This version is where development is made and new features are added. Master branch is the current npm package and version.

NPM Package

- Our NPM package is the quickest and easiest way to jump in with dogehouse-js.

Installation

  1. Go to https://dogehouse.tv
  2. Open Developer options (F12 or Ctrl+Shift+I)
  3. Go to Application > Local Storage > dogehouse.tv
  4. Copy your token and refresh-token and put them in an .env file:
DOGEHOUSE_TOKEN=<token>
DOGEHOUSE_REFRESH_TOKEN=<refresh-token>
  1. Install NodeJS and NPM.

Wrapper

The goal of the Wrapper is to provide premade functions for your ease.

  • All examples like, sending messages, joining rooms and more are in /examples.

JavaScript Example - Get Popular Rooms

const { Client } = require('dogehouse-js');
const app = new Client();

app.connect(process.env.DOGEHOUSE_TOKEN, process.env.DOGEHOUSE_REFRESH_TOKEN).then(async () => {
    console.log('Bot connected!');
    console.log(await app.rooms.top); // Log all of your top rooms to console
});

Credits

Thank you to Abalon#2525/https://github.com/alon-abadi for the awesome logo!

Package Sidebar

Install

npm i dhjs-staged

Weekly Downloads

2

Version

2.0.2

License

MIT

Unpacked Size

111 kB

Total Files

38

Last publish

Collaborators

  • holopanio