version add

This commit is contained in:
mihalin 2021-09-09 19:16:28 +03:00
parent 68e60bb0c7
commit 869df66cd3
5 changed files with 21 additions and 3 deletions

View File

@ -1,2 +1,3 @@
.idea
venv
config.json

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ venv
.idea
__pycache__
*.pyc
config.json

View File

@ -16,14 +16,23 @@ services:
- redis-db:/bitnami/redis/data
env_file:
- release.env
bot:
build: .
olgram:
image: ghcr.io/civsocit/olgram/bot:stable
restart: unless-stopped
labels:
- 'com.centurylinklabs.watchtower.enable="true"'
env_file:
- release.env
depends_on:
- postgres
- redis
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config.json:/config.json
command: --interval 30
volumes:
database:

View File

@ -5,6 +5,7 @@
from aiogram import types
from aiogram.dispatcher import FSMContext
from textwrap import dedent
from olgram.settings import OlgramSettings
from olgram.router import dp
@ -37,6 +38,8 @@ async def help(message: types.Message, state: FSMContext):
"""
Команда /help
"""
await message.answer(dedent("""
await message.answer(dedent(f"""
<todo: help here>
Version {OlgramSettings.version()}
"""))

View File

@ -24,6 +24,10 @@ class OlgramSettings(AbstractSettings):
"""
return 5
@classmethod
def version(cls):
return "0.0.0"
class BotSettings(AbstractSettings):
@classmethod