3.0.0-b1 • Published 3 years ago

dogehouse.js v3.0.0-b1

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

NPM Package

Quick Start

  1. Go to DogeHouse
  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.
  2. Install dogehouse.js package with npm:
npm i dogehouse.js

or yarn

yarn add dogehouse.js
  1. Try an example

Examples

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

JavaScript Example

You can use the dotenv package to load the environment variables. To install the package run

npm install dotenv

or using yarn -

yarn add dotenv
  • Get Popular Rooms
require("dotenv").config()
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 for the awesome logo!