D++ (DPP)
C++ Discord API Bot Library
|
Before compiling make sure you have all the tools installed.
brew install cmake
.For voice support, additional dependencies are required:
Replace the number after -j
with a number suitable for your setup, usually the same as the number of cores on your machine. cmake
will fetch any dependencies that are required for you and ensure they are compiled alongside the library.
If you want to install the library, its dependencies, and header files to a different directory, specify this directory when running cmake
:
Then once the build is complete, run sudo make install
to install to the location you specified.
Once installed, you can make use of the library in standalone programs simply by including it and linking to it:
The important flags in this command-line are:
-std=c++17
- Required to compile the headers-ldpp
- Link to libdpp.dylibmydppbot.cpp
- Your source codedppbot
- The name of the executable to makeHave fun!