{"id":15009433,"url":"https://github.com/kyb3r/pycord","last_synced_at":"2025-04-09T17:23:56.149Z","repository":{"id":53933464,"uuid":"103752557","full_name":"kyb3r/pycord","owner":"kyb3r","description":"pycord - A discord api wrapper written in python!","archived":false,"fork":false,"pushed_at":"2020-11-29T09:32:39.000Z","size":676,"stargazers_count":36,"open_issues_count":6,"forks_count":6,"subscribers_count":7,"default_branch":"dev","last_synced_at":"2025-03-23T19:23:12.995Z","etag":null,"topics":["api-client","discord","discord-api","discord-bot","pycord","python-3-6"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kyb3r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-16T13:03:46.000Z","updated_at":"2025-03-03T20:18:47.000Z","dependencies_parsed_at":"2022-08-13T04:50:47.164Z","dependency_job_id":null,"html_url":"https://github.com/kyb3r/pycord","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyb3r%2Fpycord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyb3r%2Fpycord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyb3r%2Fpycord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyb3r%2Fpycord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyb3r","download_url":"https://codeload.github.com/kyb3r/pycord/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075490,"owners_count":21043596,"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":["api-client","discord","discord-api","discord-bot","pycord","python-3-6"],"created_at":"2024-09-24T19:25:15.150Z","updated_at":"2025-04-09T17:23:56.134Z","avatar_url":"https://github.com/kyb3r.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n        \u003cp\u003e \u003cimg src=\"https://i.imgur.com/tDy4yb4.png\"/\u003e \u003c/p\u003e\n        \u003cp\u003e\u003ci\u003e\u003cb\u003eNOTE: This is a dead project.\u003c/b\u003e\u003c/i\u003e\u003c/p\u003e\n\t\u003cp\u003e \n\t\t\u003ca href=\"https://discord.gg/Q8kuctn\"\u003e\u003cimg src=\"https://discordapp.com/api/guilds/363717307660369921/embed.png\" alt=\"\" /\u003e\u003c/a\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/python-3.6-brightgreen.svg\" alt=\"python 3.6\" /\u003e\n\t\t\u003cimg src=\"https://readthedocs.org/projects/pycord/badge/?version=dev\" alt=\"docs\" /\u003e\u003c/a\u003e\n\t\u003c/p\u003e\n\u003c/div\u003e \n\n## About\nPycord is a Discord API wrapper currently in development. It's easy to use, object oriented and asynchronous using the `trio` async I/O library. It features a super simple commands framework inspired by discord.py's one that makes writing Discord bots a breeze.\n\n## Installation\nYou can easily install the pre-release of this library by doing `pip3 install py-cord` (not the latest)\n\n## Event Registration\n\n```py\nimport pycord\n\nclient = pycord.Client()\n\n@client.on('ready')\nasync def on_ready(time):\n    print(f'Booted up in {time:.2f} seconds')\n    print(f'Logged in as: {client.user}')\n    print(f'User ID: {client.user.id}')\n    print(f'Is Bot: {client.user.bot}')\n    print(f'With {len(client.guilds)} guilds')\n\n@client.on('message')\nasync def ping_command(message):\n    if message.content.startswith('py.ping'):\n        await message.reply('Pong!')\n\nmessage_count = 0\n\n@client.on('message')\nasync def stats(message):\n    message_count += 1\n \n# easily register multiple events\n\nclient.login('token')\n```\n\n### Quick Examples\n\nHow to send messages\n```py\nawait ctx.reply('content')\nawait channel.send('content')\nawait message.reply('content')\nawait message.channel.send('content')\n```\n\nHow to send embeds\n```py\nem = pycord.Embed(title='Hi there', color=0x00FFFF)\nem.set_author('Bob')\nem.add_field('oi','this is a value')\n\nawait channel.send('pretext', embed=em)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyb3r%2Fpycord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyb3r%2Fpycord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyb3r%2Fpycord/lists"}