C++ Discord API Bot Library
This tutorial teaches you how to create a lightweight environment for D++-development using WSL and Visual Studio Code
This Tutorial will use WSL's default distribution, Ubuntu! You might use other Distros if you prefer, but keep in mind the setup process might be different!
wslto start up your subsystem. If you want to set up a CMake project (recommended for production bots) now, consider continuing your path of becoming the master of all Discord bots here, otherwise keep following this guide!
wget [url here]. In this guide we will use the latest build for 64 bit Ubuntu:
wget -O libdpp.deb https://dl.dpp.dev/latest
sudo apt-get install libopus0 && sudo apt-get install -y libopus-dev && sudo apt-get install -y libsodium-dev && sudo dpkg -i libdpp.deb && rm libdpp.deb
cd your/path/hereor create a new directory using
mkdir MyBot && cd MyBot
> mybot.cxxto create a file you can work in!
Remote-WSL: New WSL Window. This will bring up a new window. In the new window, choose
open folderand choose the folder you've created prior. Press OK and now you have your Folder opened as a Workspace!
g++ -std=c++17 *.cxx -o bot -ldppin the same folder as your cxx file.