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
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
voltage-0.1.0a0.tar.gz
(6.3 kB
view hashes)