Simple api wrapper for Python Bot
Project description
Python Bot Api Wrapper
Handles messages and other events from the Python Bot api.
Messages are returned as a Message object with the content and a unique id.
When the client if defined and ran, it will asynchronously check for new messages in the api.
There are two types of events currently: on_ready and on_message
on_ready is used to check if the api is up and that everything is working correctly.
on_message is used to perform certain actions when a message is received.
Example of usage
import pythonbot
client = pythonbot.Client()
@client.event
async def on_ready():
print("Client is ready.")
@client.event
async def on_message(message):
print("New message: " + message.content)
client.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythonbot-0.5.tar.gz.
File metadata
- Download URL: pythonbot-0.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa2576e53e5dce9d4ac8b5767dd00f6f341e06ed3a1b3c4a5c96544c7d10f5be
|
|
| MD5 |
1ef866010cf0a92a83b422913413589f
|
|
| BLAKE2b-256 |
6b904b501b8a7d54e782e074e10624989cd025345561a31d55337f7cb00fb97a
|
File details
Details for the file pythonbot-0.5-py3-none-any.whl.
File metadata
- Download URL: pythonbot-0.5-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc8d805a29d42c2d6f448d1ede165d0a0e0655161e2dede672967c6320ac4f55
|
|
| MD5 |
404b5d5e092836da7d17e96d89ea3bd0
|
|
| BLAKE2b-256 |
5b780a3db56496eff9ba77fa3c47ae4e1227b9a4fc29464aa08de9c21ce15b6e
|