A simple Discord bot to change username's colors by replacing their roles.
Written in C++ to prove bubu is non and I'm (obviously) superior to him.
The command prefix for this bot is $#
.
Change the color of your name to the color specified by the hex code.
Change the color of your name to a random color.
Change the color of your name to the mentioned user's color.
- C++11 (GNU GCC 11.1.0)
- CMake 3.6 or above
- Sleepy Discord
- Clone this repository
- Fetch submodules:
git submodule update --init --recursive
- Create a directory called
build
- Make sure the definition of
DEVELOPMENT
is commented out inCMakeLists.txt
. cmake -S . -B ./build
make -C build
- The executable
colorole
will appear.
- Create a bot, enable permissions that allow the bot to manage roles, read and send messages.
- Enable
Presence Intent
andServer Members Intent
. - Define an environment variable
COLOROLE_TOKEN
and paste the token there. - Run the
colorole
executable.
- This implementation is highly inefficient, so use at your own risk.
- C++11 is required to compile.
- If error 5002 gets raised, clear CMake build cache by deleting
build/CMakeCache.txt
, then rebuild. - If CMake complains about deprecation for versions < 2.8.12, go to
deps/sleepy-discord/buildtools/cmake/
, openDownloadProject.CMakeLists.cmake.in
, then edit2.8.2
to3.6
.