https://github.com/atennop1/prisonbot
Telegram bot-game that I made for fun and RP in one conversation where I often chat
https://github.com/atennop1/prisonbot
Last synced: 6 months ago
JSON representation
Telegram bot-game that I made for fun and RP in one conversation where I often chat
- Host: GitHub
- URL: https://github.com/atennop1/prisonbot
- Owner: Atennop1
- License: mit
- Created: 2023-06-23T12:52:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T15:00:03.000Z (about 2 years ago)
- Last Synced: 2023-09-28T02:13:24.781Z (about 2 years ago)
- Language: C#
- Homepage:
- Size: 1.34 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PrisonBot


## Specifics
- Project using **OOP** and **SOLID**
- Using [**my database library**](https://github.com/Atennop1/Relational-Databases-Via-OOP)
- Fun-made project
- Awesome abstractions## Tools
- [**Telegram.BotAPI**](https://github.com/Eptagone/Telegram.BotAPI)
- [**Relational databases via OOP**](https://github.com/Atennop1/Relational-Databases-via-OOP)## About project
This is a telegram bot-game that I made for fun and RP in one conversation where I often chat
The essence of the game is this: each person has his own "prisoner's passport", which stores some information, namely:
- ```Real name```
- ```Pseudonym```
- ```Number of years spent in prison```
- ```Social rating (how respected)```
- ```Specialization```
- ```Specialization level```
- ```Status (also as far as respect, but already a certain rank)```
- ```Date of entry into the chat```
- ```Whether a person was noticed by the python programming language```
- ```Was the person mentioned in bugurts(not joustings)```The passport must be linked to at least one telegram account. But the bot supports the function of storing one passport for several people at once. All information is stored in a database and can be obtained in the form of a passport by anyone.
This is done in several ways, but they all use the /passport command:
- ```/passport``` without reply to message. Displays the passport of the person who sent the message, if it exists
- ```/passport``` with reply to message. Displays the passport of the person whose message this command was sent to, if it exists
- ```/passport {id}``` displays the passport of a person with the given telegram id, if it exists
- ```/passport {pseudonym}``` displays the passport of a person with the given pseudonym, if it exists
## Conclusion
This project helped me gain experience in databases and showed in practice how useful [**my database library**](https://github.com/Atennop1/Relational-Databases-Via-OOP) is. Thanks to the development of this bot, I understood how to identify users by ID, learned how to work with several tables at once, how to move data to a new table, and in general I learned PostrgeSQL better. Well, my chat friends were also happy to receive such RP