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.2.tar.gz
(144.5 kB
view hashes)
Built Distributions
discord_curious-0.7.2-py3.7.egg
(338.7 kB
view hashes)
Close
Hashes for discord_curious-0.7.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e9d56878bca727ae36f5b14ca14418a4f4359b2f9adee876507f99c57ce9db |
|
MD5 | 3823e2676f39da87a40494431f9b7c62 |
|
BLAKE2b-256 | 293d31d50a04d6bbcf272c859b87ac841c222f9d38b1f95233c62adc84714dc0 |