GitHunt
EX

exersalza/salty-cpp-bot

Little moderation bot written in cpp.

salty-cpp-bot

Hey,

This Project is for a lazy Python dev to learn Cpp!

Lines of code
cpp version
wakatime
Docker Image CI

Deps:

DPP

OpenSSL

Mysql++

Nlohmann-json

cURL

Compile deps

gcc

cmake 3.23

make

Otherwise, there is a Dockerfile ready to use.

How to start the bot using a Dockerfile.

  1. Make sure you configured the config.json right.
  2. run ./createAndRun.sh. This will create the Container and start it. It also starts the dockerChecker.py that will look every 30 seconds if the container crashed and restart it when it's true.

Run the bot without the Dockerfile

Info: The bot is build on linux, when you're on Windows, please check how to Compile the libs on your system.

  1. Make sure you have all deps installed or downloaded and in flibs/
  2. Run cmake .
  3. Run make
  4. And then ./dcbot --init

Note: Make sure that you have all config parameters set, specially the sql ones.

Contribution

Feel free to open an Issue or Pull request, anything that helps make the Bot better, is appreciated.

The Bot should run on a Local machine before getting merged!

Get in Touch

Join our Discord Server: https://discord.gg/W3Yf53dBMH

Languages

C++96.5%Shell1.4%Python0.8%CMake0.7%Dockerfile0.6%

Contributors

GNU General Public License v3.0
Created November 1, 2022
Updated January 11, 2026