https://github.com/gh0sthck/aiogram-farm-bot
Aiogram farm mini game bot
https://github.com/gh0sthck/aiogram-farm-bot
aiogram bot game python telegram-bot
Last synced: 9 months ago
JSON representation
Aiogram farm mini game bot
- Host: GitHub
- URL: https://github.com/gh0sthck/aiogram-farm-bot
- Owner: gh0sthck
- License: gpl-3.0
- Created: 2021-12-30T10:00:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-10T10:20:17.000Z (almost 4 years ago)
- Last Synced: 2025-04-06T16:18:31.278Z (about 1 year ago)
- Topics: aiogram, bot, game, python, telegram-bot
- Language: Python
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aiogram — Farm-Game bot
[](https://github.com/gh0sth4ckk/aiogram-farm-bot)
[](https://github.com/gh0sth4ckk/aiogram-farm-bot/blob/main/LICENSE)
Small farm mini-game. Implemented such things as:
* Level system
* Buying and selling resources and animals
* Buying buildings
Accordingly, there is also a database, sqlite (There is a dump in the models / dump.sql folder).
# Installation
0. Requires Python 3.9+
1. Git clone project into directory:
```shell
git clone https://github.com/gh0sth4ckk/aiogram-farm-bot.git
```
2. Install all requirements:
```shell
pip install -r requirements.txt
```
3. Get personal bot token from @BotFather in telegram and past him into .env file instead of "YOURTOKEN":
```env
BOT_TOKEN=
```
4. Start `bot.py` file and send `/start` command
# Commands
`/start` - Start game \
`/help` - Get help \
`/profile` - Open player profile
# Deeplink with bonuses
You can setting special link which going, user will get bonuse resources to start.\
To create deep link enter to `aiogram-farm-bot/handlers/users/` and open `start.py` file. Go to 9 line and set `deep_link` to your custom value. \
The next time, user which enter to bot with deep link(`https://t.me/?start=`), get bonus resources.