{"id":16133193,"url":"https://github.com/abdera7mane/cordot","last_synced_at":"2025-10-23T19:30:54.333Z","repository":{"id":62006099,"uuid":"406860053","full_name":"Abdera7mane/cordot","owner":"Abdera7mane","description":"Discord API wrapper for Godot Engine written in GDScript language","archived":false,"fork":false,"pushed_at":"2023-02-18T02:00:05.000Z","size":431,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-05-02T20:38:25.637Z","etag":null,"topics":["addon","api","discord","discord-api","discord-bot","gdscript","godot","godot-addon","godot-engine","godotengine","plugin","rest","websocket"],"latest_commit_sha":null,"homepage":"https://cordot.readthedocs.io","language":"GDScript","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/Abdera7mane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-15T17:10:55.000Z","updated_at":"2023-03-09T16:18:25.000Z","dependencies_parsed_at":"2023-01-20T19:16:21.146Z","dependency_job_id":null,"html_url":"https://github.com/Abdera7mane/cordot","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdera7mane%2Fcordot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdera7mane%2Fcordot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdera7mane%2Fcordot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdera7mane%2Fcordot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abdera7mane","download_url":"https://codeload.github.com/Abdera7mane/cordot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867957,"owners_count":16555810,"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":["addon","api","discord","discord-api","discord-bot","gdscript","godot","godot-addon","godot-engine","godotengine","plugin","rest","websocket"],"created_at":"2024-10-09T22:37:56.972Z","updated_at":"2025-10-23T19:30:53.865Z","avatar_url":"https://github.com/Abdera7mane.png","language":"GDScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e :information_source: **Note:** If you are looking to integrate your game with the Discord client, check out [Discord RPC](https://github.com/Abdera7mane/Discord-RPC-GDScript).\n\n# Cordot\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"icon.png\" alt=\"icon\", width=\"128\"\u003e\n    \u003cbr\u003e\u003cbr\u003e\n    Discord API wrapper for \u003ca href=\"https://github.com/godotengine/godot\"\u003eGodot Engine\u003c/a\u003e written in \u003cb\u003eGDScript\u003c/b\u003e language.\n    \u003cbr\u003e\u003cbr\u003e\n    \u003ca href=\"https://godotengine.org/download\"\u003e\n        \u003cimg src=\"https://img.shields.io/static/v1?label=Godot\u0026message=3.5.x\u0026color=478cbf\u0026style=for-the-badge\u0026logo=godotengine\u0026logoColor=white\" alt=\"Godot version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://discord.com/developers/docs/reference\"\u003e\n        \u003cimg src=\"https://img.shields.io/static/v1?label=Discord%20API\u0026message=V9\u0026color=5865f2\u0026style=for-the-badge\u0026logo=discord\u0026logoColor=white\" alt=\"Discord API version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/abdera7mane/cordot?style=for-the-badge\" alt=\"License\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n# Features\n\n* Object oriented\n* Statically typed\n* Supports gateway resumes and auto reconnects when possible\n\n## Example\n\nA minimal bot written using this library\n\n```gdscript\nextends Node\n\nvar token: String = \"bot_token\"\nvar client: DiscordClient = DiscordClient.new(token)\n\nfunc _ready() -\u003e void:\n    add_child(client)\n    \n    client.connect(\"client_ready\", self, \"_on_bot_ready\")\n    client.connect(\"message_sent\", self, \"_on_message\")\n\n    client.login()\n\nfunc _on_bot_ready(user: User) -\u003e void:\n    print(\"Bot is ready !\")\n    print(\"logged as: \", user.get_tag())\n\n    var presence := PresenceUpdate.new()\n    presence.set_status(Presence.Status.DND)\\\n            .add_activity(Presence.playing(\"Godot Engine\"))\n\n    client.update_presence(presence)\n\nfunc _on_message(message: Message) -\u003e void:\n    if message.author.is_bot:\n        return\n\n    if message.content.to_lower().begins_with(\"hello\"):\n        message.channel.create_message(\"Greetings !\").submit()\n\n```\n\n## Installation\n\n\n```\ngit clone --recursive https://github.com/Abdera7mane/cordot\ncd cordot\ngit submodule update --init --recursive\n```\nOpen the folder as a Godot project or copy the `addons` directory to an existing project.\n\n## Documentation\n\nThe documentation is hosted on [ReadTheDocs](https://cordot.readthedocs.io/).  \nContributions to [cordot-docs](https://github.com/Abdera7mane/cordot-docs) are welcomed.\n\n## Usage\n\nEven though this may seem useless for a Godot game, I find this project being useful in some scenarios:\n* Learning resource\n* Running a discord bot in a Godot game server\n\nIt is always up to you and your creativity on how you will use this project as long as you **don't abuse the Discord API**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdera7mane%2Fcordot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdera7mane%2Fcordot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdera7mane%2Fcordot/lists"}