A discord bot made with c++
This project is just made for fun.
Linux only. Compile with g++ and cmake. First, install dependecies below.
On ubuntu/debian like distributions:
apt install libssl-dev zlib1g-dev libsodium-dev libopus-dev libpqxx-dev libmp3lame-dev
Then clone this repo.
git clone https://github.com/DK0280705/chadpp.git
cd chadpp
git submodule update --init --recursive
Create .env
file with your favorite editor.
DISCORD_TOKEN="Your Token"
BOTLOG_ID=123456789098765432
GUILD_ID=123456789098765432
OWNER_ID=123456789098765432
CONN_STRING="Your PostgreSQL connection string"
Then configure cmake. You can replace Ninja with GNU make.
cmake -DCMAKE_BUILD_TYPE=Release -GNinja -B ./build
Compile with:
cmake --build ./build -j$(nproc)
Then run your bot:
./launch.sh
No need to install these as they're already included in this project.
- DPP (Using my fork)
- Nlohmann JSON
{fmt}