dogehouse-3.0.1
توضیحات
Python wrapper for the dogehouse API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dogehouse-3.0.1 |
| نام | dogehouse |
| نسخه کتابخانه | 3.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tushar Sadhwani |
| ایمیل نویسنده | tushar.sadhwani000@gmail.com |
| آدرس صفحه اصلی | https://github.com/tusharsadhwani/dogehouse.py |
| آدرس اینترنتی | https://pypi.org/project/dogehouse/ |
| مجوز | MIT |
# dogehouse.py
Python wrapper for the dogehouse API.
[](https://pypi.org/project/dogehouse)
## Documentation
You can find the documentation at [The DogeGarden Wiki](https://wiki.dogegarden.net)
## Installation
`pip install dogehouse`
## Example
```python
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](./examples/basic_bot.py) for more feature usage.
## Tokens
- Go to [dogehouse.tv](https://dogehouse.tv)
- Open Developer options (<kbd>F12</kbd> or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>I</kbd>)
- Go to Application > Local Storage > dogehouse.tv
- There lies your `TOKEN` and `REFRESH_TOKEN`
نیازمندی
| مقدار | نام |
|---|---|
| ==8.1 | websockets |
| >=6.2.2 | pytest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl dogehouse-3.0.1:
pip install dogehouse-3.0.1.whl
نصب پکیج tar.gz dogehouse-3.0.1:
pip install dogehouse-3.0.1.tar.gz