{"id":13409928,"url":"https://github.com/yourWaifu/sleepy-discord","last_synced_at":"2025-03-14T15:31:24.769Z","repository":{"id":41536267,"uuid":"64728389","full_name":"yourWaifu/sleepy-discord","owner":"yourWaifu","description":"C++ library for the Discord chat client.","archived":false,"fork":false,"pushed_at":"2025-02-22T01:07:11.000Z","size":54736,"stargazers_count":704,"open_issues_count":92,"forks_count":93,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-06T22:30:47.461Z","etag":null,"topics":["c-plus-plus","cpp","discord","discord-library","hacktoberfest","library"],"latest_commit_sha":null,"homepage":"https://yourWaifu.github.io/sleepy-discord/","language":"C++","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/yourWaifu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["yourWaifu"]}},"created_at":"2016-08-02T05:57:38.000Z","updated_at":"2025-03-04T07:04:46.000Z","dependencies_parsed_at":"2023-10-28T20:24:22.128Z","dependency_job_id":null,"html_url":"https://github.com/yourWaifu/sleepy-discord","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourWaifu%2Fsleepy-discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourWaifu%2Fsleepy-discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourWaifu%2Fsleepy-discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourWaifu%2Fsleepy-discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yourWaifu","download_url":"https://codeload.github.com/yourWaifu/sleepy-discord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243600607,"owners_count":20317307,"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":["c-plus-plus","cpp","discord","discord-library","hacktoberfest","library"],"created_at":"2024-07-30T20:01:04.092Z","updated_at":"2025-03-14T15:31:24.760Z","avatar_url":"https://github.com/yourWaifu.png","language":"C++","funding_links":["https://github.com/sponsors/yourWaifu"],"categories":["API Libraries","Libraries"],"sub_categories":["C++"],"readme":"# Sleepy Discord\nC++ library for Discord\n\n[![Discord Server](https://discordapp.com/api/guilds/566681036935790615/widget.png?style=banner2)](https://discord.gg/5VDrVfK)\n\n# [Documentation](https://yourwaifu.dev/sleepy-discord/docs/)\n[Getting Started](https://yourwaifu.dev/sleepy-discord/docs/)\u003cbr /\u003e\n\nIf you like to edit them, [please check out the docs repo](https://github.com/yourWaifu/sleepy-discord-docs).\n\n## Build Status\n| Build | Windows MSVC | Ubuntu GCC | Ubuntu Clang | Docs |\n| ------ | ------- | ------ | ----- | ---- |\n| Master   | [![Build Status](https://dev.azure.com/wuhao64/sleepy-discord/_apis/build/status/yourWaifu.sleepy-discord?branchName=master)](https://dev.azure.com/wuhao64/sleepy-discord/_build/?definitionId=2) | [![Build Status](https://travis-ci.org/yourWaifu/sleepy-discord.svg?branch=master)](https://travis-ci.org/yourWaifu/sleepy-discord) | [![C/C++ CI](https://github.com/yourWaifu/sleepy-discord/actions/workflows/ccpp.yml/badge.svg?branch=master)](https://github.com/yourWaifu/sleepy-discord/actions/workflows/ccpp.yml) | N/A |\n| Develop   | [![Build Status](https://dev.azure.com/wuhao64/sleepy-discord/_apis/build/status/yourWaifu.sleepy-discord?branchName=develop)](https://dev.azure.com/wuhao64/sleepy-discord/_build/latest?definitionId=2) | [![Build Status](https://travis-ci.org/yourWaifu/sleepy-discord.svg?branch=develop)](https://travis-ci.org/yourWaifu/sleepy-discord) | [![C/C++ CI](https://github.com/yourWaifu/sleepy-discord/actions/workflows/ccpp.yml/badge.svg?branch=develop)](https://github.com/yourWaifu/sleepy-discord/actions/workflows/ccpp.yml) | [![documentation](https://github.com/yourWaifu/sleepy-discord/actions/workflows/documentation.yml/badge.svg?branch=develop)](https://github.com/yourWaifu/sleepy-discord/actions/workflows/documentation.yml)\n\n# Why?\nJust for the novelty of using a C++ library for Discord. I would also love for this thing to work on many things like consoles and maybe some microcontrollers.\n\n# Example\n```cpp\n#include \"sleepy_discord/sleepy_discord.h\"\n\nclass MyClientClass : public SleepyDiscord::DiscordClient {\npublic:\n\tusing SleepyDiscord::DiscordClient::DiscordClient;\n\tvoid onMessage(SleepyDiscord::Message message) override {\n\t\tif (message.startsWith(\"whcg hello\"))\n\t\t\tsendMessage(message.channelID, \"Hello \" + message.author.username);\n\t}\n};\n\nint main() {\n\tMyClientClass client(\"token\", SleepyDiscord::USER_CONTROLED_THREADS);\n\tclient.setIntents(SleepyDiscord::Intent::SERVER_MESSAGES);\n\tclient.run();\n}\n```\nInput: Message received\n```\nwhcg hello\n```\nPossible Output: Message sent\n```\nHello Sleepy Flower Girl\n```\n\nMore complex examples:\n - [Rock Paper Scissors](https://github.com/yourWaifu/sleepy-discord/blob/master/examples/rock-paper-scissors/main.cpp)\n - [Unofficial Discord 3DS Client](https://github.com/yourWaifu/Unofficial-Discord-3DS-Client)\n - [WebAssembly Client](https://github.com/yourWaifu/sleepy-discord/tree/master/examples/wasm_example) (Work In Progress)\n# Will Updating the library break my bot?\n\nYes, and for now I don't plan on making 0.0 versions backwards compatible with 1.0 versions or later.\n\n# Requirements\nSleepy Discord doesn't require you to use any libraries, so that you can use any library you wish or your own code. However, Sleepy Discord provides native support for a few libraries and it is recommend you use those instead of writing your own.\n\n* [OpenSSL](https://www.openssl.org/)\n* [cpr](https://github.com/whoshuu/cpr)\n* [ASIO](https://think-async.com/Asio/)\n\n# Develop Branch\nFor the cutting edge of Sleepy Discord, check out the develop branch. Please use the develop branch with caution because it may not even be able to compile or it is 100% not tested at all. Other then that, the branch is used for code that may not work. Also check to see if it's not behind the master branch, unless you want to use an older version of Sleepy Discord.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FyourWaifu%2Fsleepy-discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FyourWaifu%2Fsleepy-discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FyourWaifu%2Fsleepy-discord/lists"}