A Java bot for Discord using the JDA library and JDA-Utilities.
- CSGO Map Veto
- Coinflip
- Random Map
- CSGO Stats
-
Clone the project with git
cd /path/to/your/project/folder git clone https://github.com/SandroCoutinho/CSGO-Discord-Bot.git
-
Build
Type
mvn install
in theCSGO-Discord-Bot
folder. In the targets/ folder there should be a file calledcsgobot-{VERSION}.jar
(where version is the latest version number). Move this file over to a location wherever you want to start the bot from. -
Run
You can launch the bot with the following command:
java -jar csgobot-{VERSION}.jar
On first launch, It will generate adefault.settings
file and exit.
You'll have to edit the config file and add in your token, Steam API key, etc.
On the first run it will generate a config file and stop running. You'll need to at least set the token and the property botEnabled to true
Commands are prefixed with a "!". For a list of commands in discord the help command can be used.
Current list of all available commands.
Commands | |
---|---|
Coinflip | Map Veto |
Veto | Stop Veto |
Random Map | CSGO Stats |
CT/T Side Selector
Aliases: coinflip
Usable in public and private channels
Starts the CSGO Map Veto System
Aliases: start
Usable in public channels
start <boX> <captainOne> <captainTwo>
Pick/Ban a map if a veto is in progress
Aliases: veto
Usable in public channels
start <mapName>
Stops the current veto
Aliases: stopveto
Usable in public channels
Selects a random map of the active duty pool
Aliases: randommap
Usable in public and private channels
Grabs CSGO data from Steam
Aliases: csgodata
Usable in public and private channels
csgodata <steamProfileName>
The global configuration is stored in the default.settings file, which is generated the first time you run the application
The following settings can be set globally:
Setting name | default | description |
---|---|---|
BOT_ENABLED | false | Enables the bot This must be set to true in order to run the bot |
BOT_TOKEN | "BOT_TOKEN" | Token used to login to Discord |
STEAM_API_KEY | "STEAM_API_KEY" | Steam API Key to access CSGO Data |