- C++ 88%
- CMake 8.7%
- Dockerfile 3.3%
|
All checks were successful
Build and push container / publish (push) Successful in 42s
|
||
|---|---|---|
| .forgejo/workflows | ||
| external | ||
| profiledata | ||
| src | ||
| .clangd | ||
| .dockerignore | ||
| .gitignore | ||
| .gitmodules | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| config.example.json | ||
| config.schema.json | ||
| Dockerfile | ||
| README.md | ||
Robert Kyle
Build Instructions
Clone the repository (including submodules with --recursive).
Ensure you have a C++ compiler like gcc or clang installed.
Ensure that you have a recent build of cmake installed.
Run:
cmake -S . -B build
This will create the build files. To specify using clang over gcc, first run:
export CXX=clang++
export CC=clang
To use a build system like ninja over makefiles, add -G Ninja to the end of the cmake command.
Then run make -j$(nproc) in the created build directory (or ninja -j $(nproc) if you specified Ninja).
The bot will be the rkylebot executable.
To authenticate the bot, copy the config.example.json file to config.json, then place the bot token in the token property. The guildId and channelId need to be a string referencing both the discord server and the channel within the server. This is required for commands to be registered.
For archlinux, ensure that you have extra/nlohmann-json installed as it is a nessecary library for the bot.