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 details)
File details
Details for the file voltage-0.1.0a0.tar.gz
.
File metadata
- Download URL: voltage-0.1.0a0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f56c892a4ef8ca7d857a7aac40cf858b6c633edf6f06a189d068112d2c996900 |
|
MD5 | 3840c5102c76e4b9cfbe740a25296618 |
|
BLAKE2b-256 | 20e2fa8b5c3cc8be82dbbfdaba0cc5fdbc8daf5d12e63d50f195a607e4fb5f70 |