A Discord bot that allows you to communicate with your Source Dedicated Server.
Bringing Source server management into Discord. This simple bot allows you to run any kind of console commands using Valve's Remote CONsole protocol to your game servers through Discord.
Method 1
- Download the ZIP file containing the source code.
- Extract it to your preferable location.
- Delete the ZIP file if you want, we won't need it.
Method 2
- Run GitBash in the directory you want the bot to install.
- Type:
git clone https://github.com/Retr0-01/srcds-discord-bot.git
This will create a new directory which will contain the source code for the bot.
Assuming you have Node.js installed and you are in the directory you installed the bot, open a command prompt and type:
npm install
This will install all the required dependencies the bot needs to function.
Now that the bot is properly installed we need to configurate it. Go into the src
directory and copy-paste, then rename the example_config.json
file to config.json
.
Option | Description |
---|---|
token | If you don't know what this is, check out this section of the Discord.js guide. |
clientId | The client ID of your bot client. |
guildIds | An array of Discord server IDs. This is the servers that will have the bot slash commands. |
There are multiple ways to run the bot, both for a development environment and production. See the created NPM scripts for all the options.
The main command from which you will manage your servers is /server
and it includes all needed actions as subcommands in order to be simple and easy to use. All commands and options include descriptions so everything is pretty straight forward.
This repository is licensed under the MIT Licence. Learn more.