This discord bot can execute RCON commands on CS:GO/SRCDS servers.
This discord bot was highly inspired by the srcds-discord-bot by Retr0-01
The purpose of this bot is to be run side-by-side with your CS:GO server. Although it can be run anywhere I recommend not to use it in a public manner. There is only minimal security enabled and configuration files are stored locally in plain text.
If you are not planning to develop or host this bot by yourself you might want to take a look at the already running 3-tier version of this project and invite that bot to your discord server.
In order to build and run the bot you need following
git clone
or download bot as zip packageLog into Ubuntu using ssh with a sudo-enabled user into ~/ (home) and execute following by changing the version of nodejs and rcon-cli accordingly:
sudo apt-get update
curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs
git clone https://github.com/dichternebel/csgo-rcon-bot.git --depth=1
cd csgo-rcon-bot
npm i
mkdir bin && cd bin
wget https://github.com/itzg/rcon-cli/releases/download/1.4.8/rcon-cli_1.4.8_linux_amd64.tar.gz
tar xf rcon-cli_1.4.8_linux_amd64.tar.gz
cd ..
nano .env
Change at least these two settings:
BOT_TOKEN="YouVerySecretBotTokenGoesHere"
RCON_CLI_PATH="~/csgo-rcon-bot/bin/rcon-cli"
Run the bot:
node index.js
/.env
file and configure your local settings as described above/server/csgo-rcon-bot.service
file or the /server/start.bat
matching your setupAdding new commands or changing existing can be done by simply adding/changing command files to the /app/commands/game/
folder. You just have to respect some methods. Copy one file as a template to get started.
On Linux Ubuntu
/server/csgo-rcon-bot.service
file to /etc/systemd/system sudo systemctl enable csgo-rcon-bot.service
sudo systemctl start csgo-rcon-bot.service
On Windows
nssm install csgo-rcon-bot
start.bat
is located