Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ath31st/steam_news_bot

A bot for news about your Steam games. Stay up to date with the latest patches, DLC releases, and game events!
https://github.com/ath31st/steam_news_bot

hibernate-jpa junit5 log4j mockito sping-boot steam telegram telegram-bot

Last synced: 1 day ago
JSON representation

A bot for news about your Steam games. Stay up to date with the latest patches, DLC releases, and game events!

Awesome Lists containing this project

README

        

## Steam news bot

![Java](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge&logo=openjdk&logoColor=white)
![Spring](https://img.shields.io/badge/Spring-6DB33F?style=for-the-badge&logo=spring&logoColor=white)
![Apache Maven](https://img.shields.io/badge/Apache%20Maven-C71A36?style=for-the-badge&logo=Apache%20Maven&logoColor=white)
![Steam](https://img.shields.io/badge/steam-%23000000.svg?style=for-the-badge&logo=steam&logoColor=white)
![SQLite](https://img.shields.io/badge/sqlite-%2307405e.svg?style=for-the-badge&logo=sqlite&logoColor=white)
![Hibernate](https://img.shields.io/badge/Hibernate-59666C?style=for-the-badge&logo=Hibernate&logoColor=white)
![SonarLint](https://img.shields.io/badge/SonarLint-CB2029?style=for-the-badge&logo=sonarlint&logoColor=white)

It's no secret that the steam platform has significant drawbacks and general slowness and
sluggishness. News about apps
and games there are in disarray and without sorting by date and time. This bot allows you to receive
the latest news
from application developers in a timely manner, in a convenient application (telegram)

![image info](images/image01.jpg)![image info](images/image00.jpg)

#### Project objectives:

Develop a telegram bot that will promptly deliver news on games and software from the steam
platform.

Add the ability to ignore uninteresting applications.

Place the bot on the linux(raspbian) server using PM2(advanced, production process manager for
node.js).

Make the bot multilingual.

#### What can the bot do?

1. The first and most important thing is that the bot does not use or store any private information
about users. Only
open sources and the steam API are used.
2. The bot determines the user's language from the set language in the telegram settings. Two
languages are supported so
far - Russian and English. (21.08.2022)
3. After the greeting, the bot will prompt the user to register. Registration is very simple, you
only need a Steam ID.
![image info](images/image03.jpg)
4. When registering, the bot requests the user's application library from the steam, according to
the entered Steam ID,
and then saves the user's data to the database.
5. The bot has a scheduler.
- Every 30 minutes, news is searched for and sent to users.
- In case of problems (and the steam platform is not the
most agile), problematic requests will be repeated every 5 minutes after failure.
- Every 24 hours, the bot updates the user application database.
6. In the settings you can find:

![image info](images/image02.jpg)
- _"Set/Update Steam ID"_ - This is necessary for registration.
- _"Check your steam ID"_ - Here you can see the installed steam ID and activity mode.
- _"Check available wishlist"_ - Checking that the wishlist is available and news on games from
the list will be received.
- _"Set \"active\" mode"_ - Set the active mode. Only in this mode the bot will send you news.
- _"Set \"inactive\" mode"_ - Set inactive mode if you are tired of the news in general.
- _"Clear black list"_ - Clearing the blacklist.
- _"Black list"_ - List of blacklisted applications.
7. You can add the application to the blacklist under the news.

![image info](images/image04.jpg)
8. Added a wish list for accounts that have access to game information in steam settings. In order
for the bot to get access to the desired list, the privacy settings in steam should look like
this: (updated 21.08.2023)

![image info](images/image06.jpg)![image info](images/image07.jpg)

#### List of supported commands:

/start
/settings
/help

#### List of used libraries:

1. telegram bots - library to create telegram bots
2. telegram bots extensions - extensions bots for telegram bots library
3. lombok - saves us from boilerplate code
4. log4j + logback - logger
5. sqlite (jdbc and dialect) - database
6. junit + mockito - tests
7. jacoco - code coverage (85%)

####

Versions:

- Java: 17
- Spring Boot: 2.7.12
- SQLite: 3.44.0.0
- Telegrambots: 6.7.0
- Maven: 3.2.0
- JUnit5: 5.8.2
- Mockito: 4.5.1
- Jacoco: 0.8.11

You can use its services yourself if it is online - https://t.me/steam_newsy_bot.

(update 21.08.2023)
I didn't rent a server for a bot, but just used ~~raspberries~~ mini-PC iRU 114. This is my little
production server
from improvised means.