Python wrapper for the dogehouse API
Project description
dogehouse.py
Python wrapper for the dogehouse API.
Documentation
You can find the documentation at The DogeGarden Wiki
Installation
pip install dogehouse
Example
from dogehouse import DogeClient
from dogehouse.entities 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 World!")
@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()
Tokens
- 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
Project details
Release history Release notifications | RSS feed
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.0a3.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file dogehouse-3.0.0a3.tar.gz
.
File metadata
- Download URL: dogehouse-3.0.0a3.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58ace30991966a04c753e48f0579215502d87a5cf7d30153fd170d8281de9e97 |
|
MD5 | 6223b53339787d159e353c340edc513e |
|
BLAKE2b-256 | 9f4c1bb95a7450711eb2dba1222236f3e1be13470d93994310c88a484bbf22eb |
File details
Details for the file dogehouse-3.0.0a3-py3-none-any.whl
.
File metadata
- Download URL: dogehouse-3.0.0a3-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d339f9c6a9670525e34ce0412089c7511ca7810baf4f7f360a20709b7ec703ae |
|
MD5 | 3e2626b648ab55adfe0570b301b4b8e0 |
|
BLAKE2b-256 | 23840d8aa7d172d032427956f6d2c220214437d4e10992abd9acce069e6252c9 |