Skip to content

Commit

Permalink
Merge branch 'v3-alpha' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed May 6, 2021
2 parents c1495a9 + 1e814db commit f047700
Show file tree
Hide file tree
Showing 45 changed files with 761 additions and 2,883 deletions.
14 changes: 5 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
dist/
.vscode/
.idea/
*/**/__pycache__/*
venv/
*.egg-info/
__pycache__
*.egg-info
build
dist

# Testing scripts
sample.py
test.py
venv
14 changes: 14 additions & 0 deletions .todo
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
✔ Basic messaging support @done(21-05-01 18:19)
☐ Room actions
☐ Voice Support

☐ Housekeeping
✘ Logic Separation @cancelled(21-05-02 17:07)
# Turns out there's no sane way in Python to split classes.
# Just making as many delegating functions as possible is the best I can do.
☐ Documentation on Read the docs

☐ Testing
☐ API testing with pytest
☐ Doctests
☐ Tox
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"python.pythonPath": "./venv/bin/python",
"python.linting.mypyPath": "./venv/bin/mypy"
}
2 changes: 1 addition & 1 deletion .whitesource
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"issueSettings": {
"minSeverityLevel": "LOW"
}
}
}
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Arthur
Copyright (c) 2021 Tushar Sadhwani

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
12 changes: 0 additions & 12 deletions MANIFEST

This file was deleted.

51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# dogehouse.py

Python wrapper for the dogehouse API.

[![pypi](https://img.shields.io/badge/pypi-dogehouse-blue)](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.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()
```

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&period;tv
- There lies your `TOKEN` and `REFRESH_TOKEN`
53 changes: 0 additions & 53 deletions README.rst

This file was deleted.

28 changes: 14 additions & 14 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# Welcome to dogehouse.py

dogehouse.py is an easy to use, fully async, [discord.py](https://discordpy.readthedocs.io/) like python wrapper
dogehouse.py is an easy to use, fully async,
[discord.py](https://discordpy.readthedocs.io/)-like python wrapper
for [dogehouse.tv](https://dogehouse.tv).

### Features:
## Features

* Modern pythonic syntax using `async`/`await` syntax
* Command handling & parsing like `discord.py`
* Easy to use with an object-oriented design
- Modern pythonic syntax using `async`/`await` syntax
- Command handling & parsing like `discord.py`
- Easy to use with an object-oriented design

#### Planned features:
### Planned features

* [dogehouse.xyz](https://stats.dogehouse.xyz) telemetry implementation
* Efficient caching system
- [dogehouse.xyz](https://stats.dogehouse.xyz) telemetry implementation
- Efficient caching system

## Getting started

If it is your first time using the library, these are the spots to get started!

* First steps: [Introduction](intro), [Quickstart](quickstart)
* Working with Dogehouse: [Getting your tokens](quickstart?id=client-credentials)
* Examples: Examples are available in the [repository](https://github.com/Arthurdw/dogehouse.py/tree/main/examples)
- First steps: [Introduction](intro), [Quickstart](quickstart)
- Working with Dogehouse: [Getting your tokens](quickstart?id=client-credentials)
- Examples: Examples are available in the [repository](https://github.com/dogegarden/dogehouse.py/tree/main/examples)

## Support

If you are having trouble with something, these resources might help.

* Ask us in the [Dogegarden discord](https://discord.gg/S5yJECfc8d) or in
- Ask us in the [Dogegarden discord](https://discord.gg/S5yJECfc8d) or in
the [Xiler discord server](https://dc.xiler.net)
* Report bugs in the [issue tracker](https://github.com/Arthurdw/dogehouse.py/issues)

- Report bugs in the [issue tracker](https://github.com/dogegarden/dogehouse.py/issues)
1 change: 0 additions & 1 deletion docs/_footer.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/_redirects

This file was deleted.

8 changes: 0 additions & 8 deletions docs/_sidebar.md

This file was deleted.

Loading

0 comments on commit f047700

Please sign in to comment.