Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
🚀 Pypi 0.3.2-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Sep 1, 2021
1 parent 774ad33 commit cb56cf0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
25 changes: 22 additions & 3 deletions docs/PYPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ py -m pip install pincer

## Current Features
- Dispatcher
- Logging
- HTTP Client
- Logging *Improved*
- HTTP Client
- Client base class
- Basic events *Improved*
- Basic events *Improved*

**Client base class Example:**

Expand Down Expand Up @@ -103,6 +103,25 @@ async def on_ready():
client.run()
```

### Inherited client

You have the possibility to use your own class to inherit from the pincer bot base.

```py
class Bot(Client):

def __init__(self) -> None:
super(Bot, self).__init__(token='...')

@Client.event
async def on_ready(self) -> None:
...
```

See an advanced bot implementation:
> https://github.com/Pincer-org/Pincer

### Enable the debug mode

*If you want to see everything that is happening under the hood,
Expand Down
2 changes: 1 addition & 1 deletion pincer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
__package__ = "Pincer"
__author__ = "Sigmanificient, Arthurdw"
__license__ = "MIT"
__version__ = "0.3.1.dev"
__version__ = "0.3.2-dev"
__description__ = "Discord API wrapper rebuild from scratch."

from pincer.client import Client, Bot

0 comments on commit cb56cf0

Please sign in to comment.