dhjs-staged
v2.0.2
Published
Client-side implementation of DogeHouse API. Create chat & music bots with ease.
Downloads
4
Maintainers
Readme
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
- NPM: https://www.npmjs.com/package/dogehouse-js
Installation
- Go to https://dogehouse.tv
- Open Developer options (F12 or Ctrl+Shift+I)
- Go to Application > Local Storage > dogehouse.tv
- Copy your token and refresh-token and put them in an .env file:
DOGEHOUSE_TOKEN=<token>
DOGEHOUSE_REFRESH_TOKEN=<refresh-token>
- 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!