dhts
v0.0.12
Published
Client-side implementation of DogeHouse API. Create chat & music bots with ease.
Downloads
6
Readme
NPM Package
- Our NPM package is the quickest and easiest way to jump in with dogehouse.js.
- dogehouse.js package
Installation
- Go to DogeHouse
- 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>
Examples
- All examples like, sending messages, joining rooms, music, moderation 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 for the awesome logo!