Skip to main content

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 start a loop that checks if there is a new message every 0.5 seconds by default.

Example of usage

import pythonbot

client = pythonbot.Client()

@client.event
async def on_message(message):
    print("New message: " + message.content)

client.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonbot-0.4.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pythonbot-0.4-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page