D++ (DPP)
C++ Discord API Bot Library
|
Open up CLion and open the folder for your bot. You may notice that CLion will start doing the whole CMake process and it will create a folder called cmake-build-debug
, this is normal so don't be alarmed! It is just CLion registering all the CMake stuff so it can build and give you auto-suggestions.
Now, you can open your main.cpp
file. If you have code there, then you're one step ahead! If not, copy and paste the following example program in the main.cpp
and set your bot token (see Creating a Bot Token). Here's how your main.cpp
file should look:
Now, you can go ahead and hit the green "Run" button in the top-right to run the bot.
Congratulations, you've successfully set up a bot!
If you're stuck, come find us on the official discord server! Ask away! We don't bite!