Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Arthurdw/dogehouse.py

Repository files navigation

image

image

image

image

Python wrapper for the dogehouse API

NOTE:

This project is now archived. Because of the latest update of the dogehouse API which changes a lot of things. And general issues with how the library was built.

I'd like to say thank you for all the positive support for this project. It was great while it lasted! ♥

& you are free to fork this repository to build out/release your own library.

This project gets continued in the dogegarden organisation @ https://github.com/dogegarden/dogehouse.py

Documentation

You can find the documentation at dogehouse.arthurdw.com

Installation

pip install dogehouse

Example

from dogehouse import DogeClient, event, command
from dogehouse.entities import Message


class Client(DogeClient):
    @event
    async def on_ready(self):
        print(f"Successfully connected as {self.user}!")
        await self.create_room("Hello World!")

    @command
    async def foo(self, ctx: Message):
        await self.send("bar")


if __name__ == "__main__":
    Client("YourToken", "YourRefreshToken", prefix="!").run()

Tokens

  • Go to https://dogehouse.tv
  • Open Developer options (F12 or Ctrl+Shift+I)
  • Go to Application > Local Storage > dogehouse.tv
  • There lies your TOKEN and REFRESH_TOKEN