/curious

A curio/trio-based library for the Discord API

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

Curious

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/.