Discord Presences BOT is a bot designed for the Among Us Spanish Discord server. You are free to fork the code, build the project and use it for your own benefit.
This bot shows how many users are playing Among Us on the server, or whatever game you define in environment variables.
This project requires JVM 11 and Kotlin 1.4.0
To be able to log in with a bot you need a Discord Bot Token, follow our guide to get one and configure it correctly.
Game Name | Application ID |
---|---|
Among Us | 746966631686733855 |
Fall Guys | 742897755160313986 |
Minecraft | 356875570916753438 |
Overwatch | 356875221078245376 |
Terraria | 356943499456937984 |
Valorant | 700136079562375258 |
Run the following command in your terminal to create a jar file:
$ mvn package
Once the project is packaged, two .jar files will be created in the target folder, the jar with all the dependencies and manifest is DPB-jar-with-dependencies.jar.
To run the bot you need to define two environment variables or by default include their values as execution arguments.
ENV NAME | VALUE | Default Value |
---|---|---|
DISCORD_TOKEN | A Discord bot token. | null |
GUILD_ID | The ID of the Discord server for which you are going to use this bot. | null |
CHANNEL_ID | The ID of a valid voice channel which can be edited by the bot. | null [Not required] |
GAME_ID | A valid Discord's Snowflake Application ID | 746966631686733855 |
GAME_NAME | The game name | Among us |
PRESENCE_TEMPLATE | A string containing "{game}" and "{count}" | {game} with {count} members!! |
CHANNEL_TEMPLATE | A string containing "{game}" and "{count}" | {game}: {count} |
$ java -jar target/DPB-jar-with-dependencies.jar [DISCORD_TOKEN] [GUILD_ID] (CHANNEL_ID)
Replace the names with the values and do not include the []