Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.
/ old-cppbot Public archive

A small C++ Discord bot made in aegis.cpp

Notifications You must be signed in to change notification settings

AndreMor8/old-cppbot

Repository files navigation

Made with aegis.cpp (now discontinued)

It was made to work on Linux systems.

Docker

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.

Build

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.