Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/F0rzend/aiogram_template
https://github.com/F0rzend/aiogram_template
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/F0rzend/aiogram_template
- Owner: F0rzend
- Created: 2021-04-17T17:30:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-22T21:10:41.000Z (over 3 years ago)
- Last Synced: 2024-08-03T01:15:32.740Z (3 months ago)
- Language: Python
- Size: 148 KB
- Stars: 43
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### [![Python](https://img.shields.io/badge/Python-3.9%2B-blue)](https://www.python.org/downloads/) [![Aiogram](https://img.shields.io/badge/aiogram-2.12-blue)](https://pypi.org/project/aiogram/)
### About
Scalable and straightforward template for bots written on [aiogram](https://github.com/aiogram/aiogram).### Setting up
#### System dependencies
- Python 3.9+
- GNU/Make
- GIT#### Preparations
- Clone this repo via `git clone https://github.com/f0rzend/aiogram_template`;
- Move to the directory `cd aiogram_template`.#### Poetry Deployment
- **Note:** You need to have Poetry installed: `pip install poetry`;
- Install dependencies: `make install`;
- Rename `config.yml.tmp` to `config.yml` and replace a token placeholder with your own one;
- Start the bot: `make run`.**Tip**: set `BOT_CONFIG_FILE` environment variable to change config path. If no variable is specified, it'll assume it's located in `bot/config/config.yml`.
#### Maintenance
*Use `make help` to view available commands*- Update dependencies `make update`;
- Reformat code `make lint`.