mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
14 lines
377 B
Python
14 lines
377 B
Python
from argenta.app import App
|
|
from argenta.command import Command
|
|
from argenta.router import Router
|
|
|
|
router = Router()
|
|
|
|
@router.command(Command('test'))
|
|
def test():
|
|
print('test command')
|
|
|
|
app = App(ignore_command_register=False)
|
|
app.include_router(router)
|
|
app.set_unknown_command_handler(lambda command: print(f'Unknown command: {command.get_trigger()}'))
|
|
app.start_polling() |