This discord bot use steam news api to keep your discord channel updated with game news. The bot allows you to register the Steam app ids of your favorite games, checks periodically for games news and posts them on your Discord channel.
Python Libraries:
- discord.py
- asyncio
- datetime
- json
- html2text
- urllib
Go to NewsBot.py; you must set a value for:
token="CHANNEL BOT TOKEN"
newsChannel="DISCORD CHANNEL ID"
You can change the following values:
bot_prefix="!"
fileName="gamenews.txt" # File that will store all the news info.
Run the bot with:
py NewsBot.py
You can use SteamDb to find Steam ids. And then say this on your news channel:
!register <gameName> <steamId>
GameName must have no spaces. For example:
!register CounterStrikeGO 730
Bot should response the following: Game with id '730' and name 'CounterStrikeGO' has been registered. News will arrive in about 10 minutes.