Discord bot that includes the current playercount of a steam game in its presence.
- API key for Steam (get one here: https://steamcommunity.com/dev/apikey)
- API key for Discord-Bot (create a bot and acquire a bot-token: https://discordapp.com/developers/applications/)
- Create and add bot to your Discord-Server (https://www.howtogeek.com/364225/how-to-make-your-own-discord-bot/)
- edit
docker-compose.yml
and put in your api keys and the steam-appid you want to watch playercount for (sites like https://steamdb.info/apps/ help to find the right appid) docker-compose up -d
npm install
export DISCORD_API_KEY=kl23j4j234 && export STEAM_API_KEY=lkjasdfjklasdf && export STEAM_APPID=123456 && node bot.js
You may want to use programs like screen
to keep it running in the background.