Skip to main content

Asynchronous Discord API Wrapper For Python

Project description

RPD

A asynchronous Discord API Wrapper for Python

Features

  • Sane Handling of 429s
  • Customizable
  • Gateway Support

Installing

To Install RPD Just run the following command:

pip install RPD

To install our speed requirements just run the following command:

pip install RPD[speed]

For voice support run the following command:

pip install RPD[audio]

Example

This is a quick usecase example for the library!

import rpd

bot = rpd.BotApp()

@bot.event
async def on_ready():
    print('ready!')

bot.run('my_bot_token')

This is another example but with a prefixed command

import rpd

bot = rpd.BotApp()

@bot.event
async def on_ready():
    print('ready!')

@bot.event
async def on_message(msg):
    if msg.content.startswith('!ping'):
        await msg.reply('pong!')

bot.run('my_bot_token')

Useful Links

The RPD Discord Server

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

RPD-0.6.0.tar.gz (28.6 kB view hashes)

Uploaded Source

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