Asynchronous Discord API Wrapper For Python
Project description
discord.io
A asynchronous Discord API Wrapper for Python
Features
- Sane Handling of 429s
- Customizable
- Gateway Support
Installing
To Install discord.io Just run the following command:
pip install discord.io
To install our speed requirements just run the following command:
pip install discord.io[speed]
For voice support run the following command:
pip install discord.io[audio]
Example
This is a quick usecase example for the library!
import discord
client = discord.Client()
@client.event
async def on_ready():
print('ready!')
client.run('my_bot_token')
This is another example but with a prefixed command
import discord
client = discord.Client()
@client.event
async def on_ready():
print('ready!')
@client.command()
async def ping(ctx):
await ctx.send('pong!')
client.run('my_bot_token')
Useful Links
The discord.io Discord Server
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
discord.io-0.7.0.tar.gz
(31.7 kB
view hashes)