Skip to main content

Python wrapper for the dogehouse API

Project description

dogehouse.py

Python wrapper for the dogehouse API.

pypi

Documentation

You can find the documentation at The DogeGarden Wiki

Installation

pip install dogehouse

Example

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.

Tokens

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dogehouse-3.0.1.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

dogehouse-3.0.1-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page