Skip to main content

A Simple Pythonic Asynchronous API wrapper for Revolt.

Project description

Revolt Support Server PyPi Page. Docs Status GitHub Workflow Status

A Simple Pythonic Asynchronous API wrapper for Revolt.

Usage

import voltage

client = voltage.Client()

@client.listen('ready')
async def on_ready(payload):
    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")

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


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.4a3.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

voltage-0.1.4a3-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file voltage-0.1.4a3.tar.gz.

File metadata

  • Download URL: voltage-0.1.4a3.tar.gz
  • Upload date:
  • Size: 25.2 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

Hashes for voltage-0.1.4a3.tar.gz
Algorithm Hash digest
SHA256 fe6b3ce524c916a037b3bc177ea9c9001eda27b5a6ca59ec7a38191cf8b06e56
MD5 59917195c3eeef8a7cc8098faf9c7e6c
BLAKE2b-256 a27b36275a6638af74cc3493c46680ed134acf26eebd6c145a629fa3c70e5267

See more details on using hashes here.

File details

Details for the file voltage-0.1.4a3-py3-none-any.whl.

File metadata

  • Download URL: voltage-0.1.4a3-py3-none-any.whl
  • Upload date:
  • Size: 30.7 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

Hashes for voltage-0.1.4a3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f36ad5ba7301743a66cbc1b434cef268d31e3efe2c3b6c0f7f356f24b1f0815
MD5 7a3e08dbc7c37e0eddfaee62a54033be
BLAKE2b-256 316863fe9dd844c1eaf6c5c3cf592f2d63850fb789d387f83264406a914e64ec

See more details on using hashes here.

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