Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flopsreallygotit/characteristics
Do you want to know what people think about you? Or maybe you want to leave a review about someone? Then this bot is perfect for you. Only 2 commands that can change or show a person's current characteristics. It's time to become a real favorite or transform into a real villain.
https://github.com/flopsreallygotit/characteristics
aiogram aiogram-bot python telegram-bot
Last synced: about 1 month ago
JSON representation
Do you want to know what people think about you? Or maybe you want to leave a review about someone? Then this bot is perfect for you. Only 2 commands that can change or show a person's current characteristics. It's time to become a real favorite or transform into a real villain.
- Host: GitHub
- URL: https://github.com/flopsreallygotit/characteristics
- Owner: flopsreallygotit
- License: mit
- Created: 2024-06-24T21:02:24.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-13T15:25:57.000Z (6 months ago)
- Last Synced: 2024-10-15T02:49:51.917Z (3 months ago)
- Topics: aiogram, aiogram-bot, python, telegram-bot
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Characteristics
Do you want to know what people think about you? Or maybe you want to leave a review about someone? Then this bot is perfect for you. Only 2 commands that can change or show a person's current characteristics. It's time to become a real favorite or transform into a real villain.
## Usage
- ```/start```: Displays info about bot
- ```/add ```: Adds characteristic to user
- ```/show ```: Shows characteristics of user## Quick Start
1) You will need a token. You can receive it from **@BotFather** in TG with command ```/newbot```
2) Create ```config.env``` file in the root of project:
```config.env
token = Nonefrequency = 10
db_filename = "users.json"
protect_content = True
```- ```token```: Token that you received from BotFather (Str)
- ```frequency```: The number of requests after which the database will be flushed to the hard drive
- ```db_filename```: Filename of database (Str)
- ```protect_content```: Toggle forwarding messages (bool: True / False)In example below all values are default.
3) Complete setup and launch bot:
```bash
./setup.sh
python3 main.py
```### Database format
```json
{
"Flops": [
{"Stamina": "6"},
{"Strength": "5"},
{"Health": "7"},
{"Name": "Secret"}
],
"OncomingLane": [
{"Stamina": "5"},
{"Strength": "6"},
{"Hobby": "Car_repair_works"}
],
"AlexeyOsipov742": [
{"Health": "0"},
{"Hobby": "OncomingLane"}
]
}
```