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 details)
File details
Details for the file RPD-0.6.0.tar.gz
.
File metadata
- Download URL: RPD-0.6.0.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32503f7224c8a7be560e73f1a7ce84aad1d845b06e1040df4d3aa3fe0a480ace |
|
MD5 | 55acbc0a529727fd350734fc4e81f7a8 |
|
BLAKE2b-256 | f077c83f0b411c30a0dba4feca0dc8a2d6c329f014d2e889cf27587fb1e2174a |