dogehouse.js
v3.0.0-b1
Published
Client-side implementation of DogeHouse API. Create chat & music bots with ease.
Downloads
25
Readme
NPM Package
- Our NPM package is the quickest and easiest way to jump in with dogehouse.js.
- dogehouse.js package
Quick Start
- 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>
npm i dogehouse.js
or yarn
yarn add dogehouse.js
- 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!