Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DiscordPP/discordpp
A Modularized C++ Library for the Discord API
https://github.com/DiscordPP/discordpp
c-plus-plus cpp discord discord-api discord-api-v9 discord-api-wrapper discord-lib discord-library discordpp
Last synced: about 2 months ago
JSON representation
A Modularized C++ Library for the Discord API
- Host: GitHub
- URL: https://github.com/DiscordPP/discordpp
- Owner: DiscordPP
- License: mit
- Created: 2016-03-27T06:07:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T13:56:03.000Z (8 months ago)
- Last Synced: 2024-05-02T02:36:39.843Z (7 months ago)
- Topics: c-plus-plus, cpp, discord, discord-api, discord-api-v9, discord-api-wrapper, discord-lib, discord-library, discordpp
- Language: C++
- Homepage: https://discordpp.theundarkpixel.com/
- Size: 220 KB
- Stars: 187
- Watchers: 14
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- discord-api-libs - discordpp - A Modularized C++ Library for the Discord API (Libraries / C++)
- awesome-discord - Discord++
- awesome-c-preprocessor - `DiscordPP/discordpp` - native`](https://github.com/DiscordPP/plugin-native) -- A modular Discord library and a module for it that use macros to define Discord API endpoints and objects. (Other projects)
README
# Discord++
A Modularized C++ Library for the Discord API
[![GitHub stars](https://img.shields.io/github/stars/DiscordPP/discordpp?style=for-the-badge)](https://github.com/DiscordPP/discordpp/stargazers)[![Discord](https://img.shields.io/discord/164234463247597568?color=%237289DA&label=Discord&style=for-the-badge)](https://discord.gg/VHAyrvspCx)
## Links
* [Discord Server](https://discord.gg/4stCdkDHw6)
* [Echo: Example / Template Bot](https://github.com/DiscordPP/echo-bot)## Dependencies
### Required
* [Boost](http://www.boost.org/) (If using a Beast module)
* [OpenSSL](https://www.openssl.org)
* A Discord++ REST module
* [REST: Simple-Web-Server](https://github.com/DiscordPP/rest-simpleweb)
* [REST: Beast](https://github.com/DiscordPP/rest-beast)
* A Discord++ WebSocket module
* [WebSocket: Simple-WebSocket-Server](https://github.com/DiscordPP/websocket-simpleweb)
* [WebSocket: Beast](https://github.com/DiscordPP/websocket-beast)
* Currently broken### Included (Git submodules)
* [nlohmann::json](https://github.com/nlohmann/json)
* [Asio](https://github.com/chriskohlhoff/asio/) (You can remove the submodule if Asio is being provided by Boost)### Recommended Plugins
* [Plugin: RateLimit](https://github.com/DiscordPP/plugin-ratelimit) handes rate limiting
* Without this plugin, Discord++ exits when encountering a rate limit for your safety
* [Plugin: Overload](https://github.com/DiscordPP/plugin-overload) provides overloads for the websocket `send` function
to create `std::shared_ptr`s for you and provides some sane defaults when you don't need all their arguments.
* [Plugin: Responder](https://github.com/DiscordPP/plugin-responder) provides a simple interface for detecting commands
in the form of a character and a string, e.g. `!help`
* [Plugin: Native](https://github.com/DiscordPP/plugin-netive) provides extensions to the default `call`
, `callJson`, and `callFile` methods specific to different endpoints as well as native C++ objects for Discord's JSON structures
* You can find more plugins on the [#discordpp-plugin](https://github.com/topics/discordpp-plugin) tag## Usage
See [the Wiki](https://github.com/DiscordPP/discordpp/wiki) for setup and configuration