Skip to main content

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()

Metadata

Release files for pythonbot 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pythonbot 0.5
File Size Uploaded Provenance Actions
pythonbot-0.5.tar.gz 3.5 kB Without provenance Details for pythonbot-0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pythonbot 0.5
File Interpreter ABI Platform Actions
pythonbot-0.5-py3-none-any.whl Python 3 none any Details for pythonbot-0.5-py3-none-any.whl

Total release size: 7.2 kB

Release files / pythonbot-0.5.tar.gz

Download URL pythonbot-0.5.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
aa2576e53e5dce9d4ac8b5767dd00f6f341e06ed3a1b3c4a5c96544c7d10f5be
BLAKE2b-256 checksum
How to use checksums
6b904b501b8a7d54e782e074e10624989cd025345561a31d55337f7cb00fb97a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pythonbot-0.5-py3-none-any.whl

Download URL pythonbot-0.5-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc8d805a29d42c2d6f448d1ede165d0a0e0655161e2dede672967c6320ac4f55
BLAKE2b-256 checksum
How to use checksums
5b780a3db56496eff9ba77fa3c47ae4e1227b9a4fc29464aa08de9c21ce15b6e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pythonbot 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page