Fixed group add event
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Andrey Gumirov
2022-05-01 02:36:51 +07:00
parent 65ed6f9fa6
commit 08e7f4ee93
7 changed files with 61 additions and 19 deletions

View File

@ -26,11 +26,6 @@ from util.redis_db import RedisDB
test_router = DefaultRouter()
fsm = FiniteStateMachine()
test_router.registrar.add_default_filter(StateFilter(fsm, ..., ..., always_false=True))
test_router.registrar.add_default_filter(
EventTypeFilter(BotEventType.MESSAGE_NEW.value)) # we don't want to write it in all handlers.
# # exiting from poll (works on any state)
# @test_router.registrar.with_decorator(
@ -44,6 +39,7 @@ test_router.registrar.add_default_filter(
# return "You are quited!"
@test_router.registrar.with_decorator(
EventTypeFilter(BotEventType.MESSAGE_NEW.value),
PayloadContainsFilter("test"),
)
async def main_part_handle(event: BotEvent):