work on v0.3.0

This commit is contained in:
2025-02-15 12:05:42 +03:00
parent ebfd5a80b3
commit 0ae86d0b2b
21 changed files with 101 additions and 36 deletions
+5 -3
View File
@@ -1,4 +1,6 @@
from rich.console import Console
from argenta.command.entity import Command
from argenta.router import Router
from ..handlers.handlers_implementation.help_command import help_command
@@ -12,19 +14,19 @@ settings_router: Router = Router(title='Settings points:')
console = Console()
@work_router.command(command='0', description='Get Help')
@work_router.command(command=Command(command='0', description='Get Help'))
def command_help():
help_command()
@work_router.command(command='1', description='Start Solving')
'''@work_router.command(command='1', description='Start Solving')
def command_start_solving():
start_solving_command()
@settings_router.command(command='U', description='Update WordMath')
def command_update():
upgrade_command()
upgrade_command()'''
@work_router.unknown_command
+2 -2
View File
@@ -19,14 +19,14 @@ def main():
goodbye_message: str = f'[bold red]\n{ascii_goodbye_message}{' '*12}made by kolo\n'
app.include_router(work_router, is_main=True)
app.include_router(settings_router)
#app.include_router(settings_router)
app.set_initial_message(initial_greeting)
app.set_farewell_message(goodbye_message)
app.set_description_message_pattern('[bold red][{command}][/bold red] [blue]*=*=*[/blue] [bold yellow italic]{description}')
#app.start_polling()
app.start_polling()
if __name__ == "__main__":
main()