mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
version add
This commit is contained in:
parent
68e60bb0c7
commit
869df66cd3
@ -1,2 +1,3 @@
|
|||||||
.idea
|
.idea
|
||||||
venv
|
venv
|
||||||
|
config.json
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ venv
|
|||||||
.idea
|
.idea
|
||||||
__pycache__
|
__pycache__
|
||||||
*.pyc
|
*.pyc
|
||||||
|
config.json
|
@ -16,14 +16,23 @@ services:
|
|||||||
- redis-db:/bitnami/redis/data
|
- redis-db:/bitnami/redis/data
|
||||||
env_file:
|
env_file:
|
||||||
- release.env
|
- release.env
|
||||||
bot:
|
olgram:
|
||||||
build: .
|
image: ghcr.io/civsocit/olgram/bot:stable
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
labels:
|
||||||
|
- 'com.centurylinklabs.watchtower.enable="true"'
|
||||||
env_file:
|
env_file:
|
||||||
- release.env
|
- release.env
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- ./config.json:/config.json
|
||||||
|
command: --interval 30
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database:
|
database:
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
from aiogram import types
|
from aiogram import types
|
||||||
from aiogram.dispatcher import FSMContext
|
from aiogram.dispatcher import FSMContext
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
|
from olgram.settings import OlgramSettings
|
||||||
|
|
||||||
from olgram.router import dp
|
from olgram.router import dp
|
||||||
|
|
||||||
@ -37,6 +38,8 @@ async def help(message: types.Message, state: FSMContext):
|
|||||||
"""
|
"""
|
||||||
Команда /help
|
Команда /help
|
||||||
"""
|
"""
|
||||||
await message.answer(dedent("""
|
await message.answer(dedent(f"""
|
||||||
<todo: help here>
|
<todo: help here>
|
||||||
|
|
||||||
|
Version {OlgramSettings.version()}
|
||||||
"""))
|
"""))
|
||||||
|
@ -24,6 +24,10 @@ class OlgramSettings(AbstractSettings):
|
|||||||
"""
|
"""
|
||||||
return 5
|
return 5
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def version(cls):
|
||||||
|
return "0.0.0"
|
||||||
|
|
||||||
|
|
||||||
class BotSettings(AbstractSettings):
|
class BotSettings(AbstractSettings):
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user