Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
discord_curious-0.7.9-py3.7.egg (152.4 kB) Copy SHA256 hash SHA256 Egg 3.7
discord_curious-0.7.9-py3-none-any.whl (155.9 kB) Copy SHA256 hash SHA256 Wheel py3
discord-curious-0.7.9.tar.gz (143.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page