An async library for the Discord API
Project description
curious is a Python 3.6+ library to interact with the Discord API.
Installation
Curious is available on PyPI under discord-curious:
$ pip install -U discord-curious
Or for the latest development version:
$ pip install -U git+https://github.com/Fuyukai/curious.git#egg=curious
Basic Example
from curious import BotType, Client, Message
cl = Client("token", bot_type=BotType.BOT | BotType.NO_DMS)
@cl.event("ready")
async def ready(ctx):
print("Ready on shard", ctx.shard_id)
@cl.event("message_create")
async def handle_message(ctx, message: Message):
print(f"{message.author.user.name} said '{message.content}'")
cl.run(shards=1)
Documentation
See the documentation at https://curious.readthedocs.io/en/latest/.
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-curious-0.7.0.tar.gz
(146.0 kB
view hashes)
Built Distributions
discord_curious-0.7.0-py3.6.egg
(338.2 kB
view hashes)
Close
Hashes for discord_curious-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf2d7b39867880c5e215626ca7fb3893c64d5aee546b543d3ce117ac71a76f8c |
|
MD5 | 14d872138d19cf8cd318e8ce1ed2b912 |
|
BLAKE2b-256 | a052615ed497bba618e37a5ef52655374afd491d55e117eec8eef35bef782cf3 |