Simple C++ discord bot, that is using the same system for use XP and ranks as Mee6.
note: this installation might slightly differ if you are using different linux distribution, if you are using different distro please read how to install libraries from official sites
DPP library official site / documentation
libsodium library official site / documentation
g++ compiler, wget, unzip
sudo apt install g++ unzip wget
# DPP instalation:
wget -O dpp.deb https://dl.dpp.dev/
dpkg -i dpp.deb
rm dpp.deb -fr
# libsodium instalation:
wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar -xvzf LATEST.tar.gz -C .
cd libsodium-stable
./configure
make && make check
sudo make install
cd ..
rm libsodium-stable -fr
rm LATEST.tar.gz -fr
wget https://github.com/CZmisaCZ/MeeXP/archive/refs/heads/master.zip
unzip master.zip
cd MeeXP
# compilig (without cmake):
g++ -o3 -std=c++17 main.cpp fileIO.cpp event.cpp -o xpbot -ldpp
nano settings.h
In this file change: BOT TOKEN to your bot token how to get bot token.
Change admins { DISCORD-USER-ID, DISCORD-USER-ID-2, DISCORD-USER-ID-3... }
this is a list of admins that can use /givexp and /setxp, you can put there as many users as you want or leave it empty, its up to you.
You can change other settings like save intervals, nuber of backups... therese are not as important.
save and exit using:
Ctrl+X
Y
enter
compile using: g++ -o3 -std=c++17 main.cpp fileIO.cpp event.cpp -o xpbot -ldpp
start using: ./xpbot