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.6.dev1.tar.gz
(144.6 kB
view hashes)
Built Distributions
discord_curious-0.7.6.dev1-py3.7.egg
(338.7 kB
view hashes)
Close
Hashes for discord-curious-0.7.6.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0837739275881bfb4e487ed014bb219477addc526ac3136ba9e7294a64d9e646 |
|
MD5 | 29cb69e351ed8219c2312ef5ee3cfff0 |
|
BLAKE2b-256 | 22c93c1bec1d5ad73d62f135c95a058d184c89ceb1e6b7d27e18f41df6235b6a |
Close
Hashes for discord_curious-0.7.6.dev1-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd1a7afd189af63737a54a0af623fd0fcc4e1e715f2e2403836febf766a6fba7 |
|
MD5 | 5e6a11d7cb9cb9d4a3acde624bbe420f |
|
BLAKE2b-256 | 46113e439d0016d89fb485b3b237d976aab31f83f87e834c9977646bd897fb82 |
Close
Hashes for discord_curious-0.7.6.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf22f26e1deda634520231d90d968aa11cfbd4811155bc3922cf5f628ea6284c |
|
MD5 | 6f4939ad362c0f58827c77d72a860b4b |
|
BLAKE2b-256 | 718b580b0d1676d5d0ec9979b992a58f9e777627026020d2b65672712189f2fe |