A Python wrapper for the Dogehouse API.
Project description
Installation
pip install dogehouse
Example
from dogehouse import DogeClient, event
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!")
@event
async def on_message(self, message: Message):
if message.content.startswith("!foo"):
await self.send(f"bar")
if __name__ == "__main__":
Client("YourToken", "YourRefreshToken").run()
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-0.1.0.tar.gz
(7.4 kB
view details)
File details
Details for the file dogehouse-0.1.0.tar.gz
.
File metadata
- Download URL: dogehouse-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6dac9735682dadf4c0e55e984fa656ebe94be1074ef75cac4d107a40692e3d4 |
|
MD5 | f08aad58283d3dfcdc234ba9f2d38f64 |
|
BLAKE2b-256 | 0f0a372e95e2f1df06196c8319b8e18146c70478d19c95250e00adb66d51a84c |