Skip to main content

A Python wrapper for the Dogehouse API.

Project description

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!")

    @event
    async def on_message(self, message: Message):
        if message.content.startswith("!foo"):
            await self.send(f"bar")

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


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

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-0.2.0.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file dogehouse-0.2.0.tar.gz.

File metadata

  • Download URL: dogehouse-0.2.0.tar.gz
  • Upload date:
  • Size: 8.1 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

Hashes for dogehouse-0.2.0.tar.gz
Algorithm Hash digest
SHA256 404f680e4c4ddd4c42261831e0a11e54c125beba6b9cd6ec0bd8964329ee1f00
MD5 976b561e584dae2ce4495574c1c1ce4a
BLAKE2b-256 ed69e1830213f3ed0c86f49f32b9b1e29a0ea4d1484270fa86fcc83e4ca92c79

See more details on using hashes here.

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