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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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