This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
Pincer - 0.3.1 - Basic Event support (rewrite)
Pre-release
Pre-release
- Dispatcher
- Logging
- HTTP Client
- Client base class
- Basic events Improved
Client base class Example:
from pincer.client import Bot
# Note that both `Bot` and `Client` are valid!
bot = Bot("...")
bot.run()
**An example on on_ready
event
from time import perf_counter
from pincer.client import Client
client = Client("...")
@client.event
async def on_ready():
print(f"Logged in as {client.bot} after {perf_counter()} seconds")
client.run()
Enable the debug mode
If you want to see everything that is happening under the hood,
either for curiosity or the implementation of some features,
we provide a debug logging!
import logging
logging.basicConfig(level=logging.DEBUG)
Note A lot of printing can happen, with sensitive information,
make sure to be aware or what your doing if your enable it!