Made with aegis.cpp (now discontinued)
It was made to work on Linux systems.
Recursively clone the repository, fill the .env and simply do:
docker build --tag andremor/cppbot . docker run andremor/cppbot
And voila, you will have the bot running.
Prepare all CMake build environments with option -DCMAKE_CXX_STANDARD=17
Example
cmake .. -DCMAKE_CXX_STANDARD=17
- Install MongoDB C and C++ driver to the system.
http://mongoc.org/libmongoc/current/installing.html
http://mongocxx.org/mongocxx-v3/installation/linux/
- Recursively clone
aegis.cpp
repository
git clone --recursive https://github.com/zeroxs/aegis.cpp
- Install its dependencies, and install it.
cd aegis.cpp ./install-deps.sh
When finished, a command will be displayed on the screen. Copy it and run it.
- Recursively clone this project
git clone --recursive https://github.com/AndreMor955/cppbot cd cppbot
- Compile the bot
mkdir build cd build cmake .. cmake --build .
- Fill
.env
mv .env.example .env nano .env
- Execute this bot
./bin/cppbot
It's recommended to do it from the main folder of the project, so that it correctly reads the .env
.