2.0.0-b3 • Published 3 years ago

dogehouse.js-staged v2.0.0-b3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

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!