discord.aio is an asynchronous Discord API wrapper
Currently under very early development
Python 3.6+ only.
Documentation
You can find the module documentation here: documentation
Installation
With pip:
pip3 install discord.aio
From source:
git clone https://github.com/Ryozuki/discord.aio && cd discord.aio && pip3 install .
Local development
git clone https://github.com/Ryozuki/discord.aio
cd discord.aio && pip3 install -e .
Example bot
import asyncio
import os
import logging
from discordaio import DiscordBot
logging.basicConfig(
level='DEBUG', format='%(asctime)s - %(name)s - %(levelname)s: %(message)s')
logger = logging.getLogger('my_lovely_bot')
if __name__ == '__main__':
TOKEN = os.environ['DISCORD_TOKEN']
bot = DiscordBot(TOKEN)
@bot.event()
async def on_ready():
logger.info('Connected!')
logger.info(f'My username is {bot.user}')
@bot.event('on_message') # You can also use a custom function name.
async def foo_bar(message):
logger.info(f'{message.author}: {message.content}')
bot.run()
Here you can find a more extensive example.
TODO
Handle ISO8601 timestamp
Make the DiscordBot methods better.
Metadata
Release files for discord.aio 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| discord.aio-0.3.1.tar.gz | 21.8 kB | Without provenance | Details for discord.aio-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| discord.aio-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for discord.aio-0.3.1-py3-none-any.whl |
Total release size: 49.0 kB
Release files / discord.aio-0.3.1.tar.gz
| Download URL | discord.aio-0.3.1.tar.gz |
|---|---|
| Size | 21.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd6b3991de23a30d06974ab012d47d4fe1ed9ab9dfcb61a5cc981cc82cfd5ecf
|
|
BLAKE2b-256 checksum How to use checksums |
8c584bc21d018f718d61e618ff55ebda143b88df43e21109e4436e0f2c97e10c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|
Release files / discord.aio-0.3.1-py3-none-any.whl
| Download URL | discord.aio-0.3.1-py3-none-any.whl |
|---|---|
| Size | 27.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36483819287883960df7ab634d23cba789e4995e083e9391b334c56c37550f46
|
|
BLAKE2b-256 checksum How to use checksums |
eb6cc8708bfdc21c9bdac3924c28376af7e6d998841be079465ffa18fc358da0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|
Security for discord.aio 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.