A Python wrapper for DogeHouse 🐍
Website · Tracker · Discord · Documentation
pip install dogehouse
from dogehouse import DogeClient
from dogehouse.events import ReadyEvent, UserJoinEvent, MessageEvent
doge = DogeClient("token", "refresh_token")
@doge.on_ready
async def make_my_room(event: ReadyEvent) -> None:
print(f"Successfully connected as @{event.user.username}!")
await doge.create_room("Hello dogehouse.py!")
@doge.on_user_join
async def greet_user(event: UserJoinEvent) -> None:
await doge.send_message(f"Hello @{event.user.username}")
@doge.command
async def echo(event: MessageEvent) -> None:
msg = event.message
await doge.send_message(f'@{msg.author.username} said {msg.content}')
doge.run()
Check examples for more feature usage.
- Go to dogehouse.tv
- Open Developer options (F12 or Ctrl+Shift+I)
- Go to Application > Local Storage > dogehouse.tv
- There lies your
TOKEN
andREFRESH_TOKEN