A Simple Pythonic Asynchronous API wrapper for Revolt.
Project description
A Simple Pythonic Asynchronous API wrapper for Revolt.
Usage
import voltage
client = voltage.Client()
@client.listen('ready')
async def on_ready():
print(f"Logged in as {client.user}")
@client.listen('message')
async def on_message(message): # doesn't matter what you call the function.
if message.content == '-ping':
await message.channel.send('pong!')
if message.content == '-embed':
embed = voltage.SendableEmbed(title="Hello World", description="This is an embed")
await message.reply(content="embed", embed=embed) # Obligatory message content.
client.run("TOKEN")
For more examples check the examples folder which has alot of useful, ready to go, explained examples.
Installation
Voltage is available on PyPI!
To install voltage just run:
$ pip install voltage
If you want to install the main branch which may have more features but will be more unstable you run:
$ pip install git+https://github.com/EnokiUN/voltage
Credits
Contributers, thank you :)
Revolt.py, When shit broke, that’s where I went.
Revolt.js, When the docs fail you.
Discord.py, Also a really great help while making this.
Revolt development team, Absolute chads.
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
Built Distribution
File details
Details for the file voltage-0.1.4a4.tar.gz
.
File metadata
- Download URL: voltage-0.1.4a4.tar.gz
- Upload date:
- Size: 39.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 716012d268f18cde2cd94949107bff62cf301905343ccc7157e3236eb3aa3c09 |
|
MD5 | 5e8cff37d9d68e2a0f42d8a5b838213c |
|
BLAKE2b-256 | 3d97819cca7dd576355d815fa31e27277daa42134af6bc534dd0161882c0a604 |
File details
Details for the file voltage-0.1.4a4-py3-none-any.whl
.
File metadata
- Download URL: voltage-0.1.4a4-py3-none-any.whl
- Upload date:
- Size: 48.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb3418626f8b45b19d1650ebd6c047a738ca4732f161977d43fef5fb79f8b6c3 |
|
MD5 | 91ab7c247b2240833643320d6b64ae99 |
|
BLAKE2b-256 | a1190ed3612b2bcc9fee864fa21971359e6545ba2529094ea1a32d6e588a66e8 |