{"id":13410682,"url":"https://github.com/b1naryth1ef/disco","last_synced_at":"2025-10-03T17:31:21.078Z","repository":{"id":54746345,"uuid":"64710850","full_name":"b1naryth1ef/disco","owner":"b1naryth1ef","description":"Discord Python library for people that like to dance","archived":true,"fork":false,"pushed_at":"2020-11-16T14:00:20.000Z","size":1684,"stargazers_count":252,"open_issues_count":5,"forks_count":80,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-01-06T11:48:44.915Z","etag":null,"topics":["discord","discord-api","python","python-2","python-3"],"latest_commit_sha":null,"homepage":"https://b1naryth1ef.github.io/disco/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b1naryth1ef.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-02T00:29:23.000Z","updated_at":"2024-05-12T14:57:03.000Z","dependencies_parsed_at":"2022-08-14T01:31:05.913Z","dependency_job_id":null,"html_url":"https://github.com/b1naryth1ef/disco","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1naryth1ef%2Fdisco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1naryth1ef%2Fdisco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1naryth1ef%2Fdisco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b1naryth1ef%2Fdisco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b1naryth1ef","download_url":"https://codeload.github.com/b1naryth1ef/disco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235165452,"owners_count":18946241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-api","python","python-2","python-3"],"created_at":"2024-07-30T20:01:08.397Z","updated_at":"2025-10-03T17:31:20.698Z","avatar_url":"https://github.com/b1naryth1ef.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Python"],"readme":"# disco\n\n[![PyPI](https://img.shields.io/pypi/l/disco-py.svg)](https://pypi.python.org/pypi/disco-py/)\n[![PyPI](https://img.shields.io/pypi/v/disco-py.svg)](https://pypi.python.org/pypi/disco-py/)\n[![TravisCI](https://img.shields.io/travis/b1naryth1ef/disco.svg)](https://travis-ci.org/b1naryth1ef/disco/)\n\nDisco is an extensive and extendable Python 2.x/3.x library for the [Discord API](https://discord.com/developers/docs/intro). Disco boasts the following major features:\n\n- Expressive, functional interface that gets out of the way\n- Built for high-performance and efficiency\n- Configurable and modular, take the bits you need\n- Full support for Python 2.x/3.x\n- Evented networking and IO using Gevent\n\n## Installation\n\nDisco was built to run both as a generic-use library, and a standalone bot toolkit. Installing disco is as easy as running `pip install disco-py`, however some extra packages are recommended for power-users, namely:\n\n|Name|Reason|\n|----|------|\n|requests[security]|adds packages for a proper SSL implementation|\n|ujson|faster json parser, improves performance|\n|erlpack (2.x), earl-etf (3.x)|ETF parser run with the --encoder=etf flag|\n|gipc|Gevent IPC, required for autosharding|\n\n## Examples\n\nSimple bot using the builtin bot authoring tools:\n\n```python\nfrom disco.bot import Bot, Plugin\n\n\nclass SimplePlugin(Plugin):\n    # Plugins provide an easy interface for listening to Discord events\n    @Plugin.listen('ChannelCreate')\n    def on_channel_create(self, event):\n        event.channel.send_message('Woah, a new channel huh!')\n\n    # They also provide an easy-to-use command component\n    @Plugin.command('ping')\n    def on_ping_command(self, event):\n        event.msg.reply('Pong!')\n\n    # Which includes command argument parsing\n    @Plugin.command('echo', '\u003ccontent:str...\u003e')\n    def on_echo_command(self, event, content):\n        event.msg.reply(content)\n```\n\nUsing the default bot configuration, we can now run this script like so:\n\n`python -m disco.cli --token=\"MY_DISCORD_TOKEN\" --run-bot --plugin simpleplugin`\n\nAnd commands can be triggered by mentioning the bot (configured by the BotConfig.command\\_require\\_mention flag):\n\n![](http://i.imgur.com/Vw6T8bi.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1naryth1ef%2Fdisco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb1naryth1ef%2Fdisco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb1naryth1ef%2Fdisco/lists"}