Skip to main content

A Simple Pythonic Asynchronous API wrapper for Revolt.

Project description

A Simple Pythonic Asynchronous API wrapper for Revolt.

nothing much here yet tho.

An example payload bot:

import voltage

client = voltage.Client()

@client.on('message')
async def on_message(payload):
    if payload['content'] == 'ping':
        await client.send_message(payload['channel'], 'pong')
    if payload['content'] == 'embed':
        embed = voltage.new_embed(title="Hello World", description="This is an embed")
        await client.send_message(payload['channel'], content"Hi", embed=embed) # Adding content since it's required by revolt.

client.run("TOKEN")

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

voltage-0.1.0a0.tar.gz (6.3 kB view hashes)

Uploaded Source

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