mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-14 21:49:42 +03:00
15 lines
475 B
Python
15 lines
475 B
Python
from aiogram import types
|
|
from aiogram.filters import Command
|
|
|
|
from neuroapi.types import BotSettings
|
|
|
|
from .handler import MessageHandlerABC
|
|
|
|
|
|
class SettingsCommand(MessageHandlerABC):
|
|
"""Command to show active settings"""
|
|
filter = Command('settings')
|
|
async def _command(self, message: types.Message):
|
|
self.settings = BotSettings.get_instance()
|
|
s = f"Текущие настройки:\n{self.settings.get_text()}"
|
|
await message.answer(s) |