mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-16 20:16:16 +00:00
version add
This commit is contained in:
@@ -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()}
|
||||
"""))
|
||||
|
||||
@@ -24,6 +24,10 @@ class OlgramSettings(AbstractSettings):
|
||||
"""
|
||||
return 5
|
||||
|
||||
@classmethod
|
||||
def version(cls):
|
||||
return "0.0.0"
|
||||
|
||||
|
||||
class BotSettings(AbstractSettings):
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user