A Discord bot that automatically adds appropriate reactions to messages.
Go to file
niansa 1c17a7e285 Potentially fixed crash 2023-10-31 15:28:08 +01:00
DPP Improved reaction response cleanup 2023-10-27 09:38:25 +02:00
colohalopp@75284e2dd6 Added required submodules 2023-10-18 18:34:48 +02:00
commoncpp@d0a9401a54 Use a much better pseudo random generator 2023-10-27 08:48:21 +02:00
fmt Initial commit 2023-10-18 18:33:51 +02:00
libjustlm@fc5e4f5aa1 Added required submodules 2023-10-18 18:34:48 +02:00
.gitignore Initial commit 2023-10-18 18:33:51 +02:00
.gitmodules Initial commit 2023-10-18 18:33:51 +02:00
CMakeLists.txt Improved reaction response cleanup 2023-10-27 09:38:25 +02:00
LICENSE Add LICENSE 2023-10-18 17:02:17 +00:00
README.md Fixed grammar in description 2023-10-18 18:51:00 +02:00
main.cpp Potentially fixed crash 2023-10-31 15:28:08 +01:00
system_prompt.txt Add example system prompt for chat 2023-10-18 16:42:39 +00:00
unicode_emojis.h Fixed is_unicode_emoji always returning true after size check 2023-10-27 09:43:19 +02:00

README.md

Reaktor

A Discord bot that automatically adds appropriate reactions to messages. It even understands jokes and puns, and is also able to make fun of things on its own. It automatically makes sure to pop up here and there, but not excessively.

Building

To compile the bot, clone this repository and be sure to initialize all submodules:

git submodule update --init --depth 1 --recursive

Then, createa build directory, change into it, run CMake, and finally run make:

mkdir build
cd build
cmake ..
make -j$(nproc)

Now, there should be an executable called reaktor!

Configuration

Most of the configuration happens via command line arguments. Just run the executable without any arguments to see a help page. For security reasons however, the bot token must be passed via either stdin or the environment variable LMFUN_BOT_TOKEN.

This model has been giving me the best experience so far: https://huggingface.co/TheBloke/Luban-13B-GGUF/resolve/main/luban-13b.Q4_K_M.gguf

Chat mode

If you want to use chat mode, set -DREAKTOR_WITH_CHAT=Yes. Then, when starting the bot, pass the ID of the channel to run the chat inside of, and a system prompt (see system_prompt.txt for example, be sure to keep the same format, multi-line messages are allowed).