{"id":17347303,"url":"https://github.com/realtimechris/bot-template-for-discordcoreapi","last_synced_at":"2025-04-13T20:51:58.276Z","repository":{"id":41899655,"uuid":"491373803","full_name":"RealTimeChris/Bot-Template-For-DiscordCoreAPI","owner":"RealTimeChris","description":"A template for a bot, written in C++ using DiscordCoreAPI.","archived":false,"fork":false,"pushed_at":"2024-04-29T12:59:25.000Z","size":34670,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T11:19:49.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RealTimeChris.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-12T05:18:01.000Z","updated_at":"2024-10-08T07:23:38.000Z","dependencies_parsed_at":"2025-02-01T15:44:02.316Z","dependency_job_id":"a39896bb-9510-413a-a20a-cdf47127d2ce","html_url":"https://github.com/RealTimeChris/Bot-Template-For-DiscordCoreAPI","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/RealTimeChris%2FBot-Template-For-DiscordCoreAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealTimeChris%2FBot-Template-For-DiscordCoreAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealTimeChris%2FBot-Template-For-DiscordCoreAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealTimeChris%2FBot-Template-For-DiscordCoreAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RealTimeChris","download_url":"https://codeload.github.com/RealTimeChris/Bot-Template-For-DiscordCoreAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248782279,"owners_count":21160716,"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":[],"created_at":"2024-10-15T16:48:19.221Z","updated_at":"2025-04-13T20:51:58.246Z","avatar_url":"https://github.com/RealTimeChris.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bot-Template-for-DiscordCoreAPI\nA template for a bot, written in C++ using DiscordCoreAPI.\n## Build Instructions - With VCPKG\n----\n1. Make sure you've run `vcpkg integrate install`.\n2. Set the `VCPKG_ROOT_DIR` in [CMakeLists.txt](https://github.com/RealTimeChris/Bot-Template-for-DiscordCoreAPI/blob/main/CMakeLists.txt#L2) to the root directory of your VCPKG installation, and make sure you've installed DiscordCoreAPI with it - then start up a project in your IDE, set the C++ standard to 20 or newer, and `#include \u003cdiscordcoreapi/Index.hpp\u003e`. Add main.cpp to it.\n3. Run in a terminal from within the same folder as the top-level [CMakeLists.txt](https://github.com/RealTimeChris/Bot-Template-for-DiscordCoreAPI/blob/main/CMakeLists.txt), `cmake -S . --preset Windows_OR_Linux_Debug_OR_Release`.\n4. Then run `cmake --build --preset Windows_OR_Linux_Debug_OR_Release`.\n5. Run within the same terminal and folder `cmake --install ./Build/Debug_OR_Release`. The default installation paths are: Windows = \"ROOT_DRIVE:/Users/USERNAME/CMake/Bot-Template-For-DiscordCoreAPI\", Linux = \"/home/USERNAME/CMake/Bot-Template-For-DiscordCoreAPI\", although you can change this by setting CMAKE_INSTALL_PREFIX in CMakeLists.txt.\n## Build Instructions - Without VCPKG\n1. Build and install the [dependencies](https://github.com/RealTimeChris/DiscordCoreAPI#dependencies).\n2. Build and install the [DiscordCoreAPI library](https://github.com/RealTimeChris/DiscordCoreAPI#build-instructions-non-vcpkg---the-library) with CMAKE.\n3. Set, in [CMakeLists.txt](https://github.com/RealTimeChris/Bot-Template-for-DiscordCoreAPI/blob/main/CMakeLists.txt#L6-L18), the `\u003cDEPENDENCY\u003e_INCLUDE_DIR`, `\u003cDEPENDENCY\u003e_DEBUG_ROOT` and `\u003cDEPENDENCY\u003e_RELEASE_ROOT` paths to wherever each of the respective dependencies are located - setting the `\u003cDEPENDENCY\u003e_DEBUG_ROOT` folder to wherever the debug version of the .lib file is, the `\u003cDEPENDENCY\u003e_RELEASE_ROOT` folder to wherever the release version of the .lib file for the library is, and the `\u003cDEPENDENCY\u003e_INCLUDE_DIR` to whichever directory contains the public headers for the library.\n4. Set, in [CMakeLists.txt](https://github.com/RealTimeChris/Bot-Template-for-DiscordCoreAPI/blob/main/CMakeLists.txt#L4), the `CMAKE_CONFIG_FILE_DIR` to whichever directory contains the DiscordCoreAPIConfig.cmake file that was created by the installation phase of building the library.\n5. Run in a terminal from within the same folder as the top-level [CMakeLists.txt](https://github.com/RealTimeChris/Bot-Template-for-DiscordCoreAPI/blob/main/CMakeLists.txt), `cmake -S . --preset Windows_OR_Linux_Debug_OR_Release`.\n7. Then run `cmake --build --preset Windows_OR_Linux_Debug_OR_Release`.\n8. Run within the same terminal and folder `cmake --install ./Build/Debug_OR_Release`. The default installation paths are: Windows = \"ROOT_DRIVE:/Users/USERNAME/CMake/Bot-Template-For-DiscordCoreAPI\", Linux = \"/home/USERNAME/CMake/Bot-Template-For-DiscordCoreAPI\", although you can change this by setting CMAKE_INSTALL_PREFIX in CMakeLists.txt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealtimechris%2Fbot-template-for-discordcoreapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealtimechris%2Fbot-template-for-discordcoreapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealtimechris%2Fbot-template-for-discordcoreapi/lists"}