1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-26 21:14:19 +00:00

🐛 Fixes #10

This commit is contained in:
Steffo 2021-04-17 03:53:27 +02:00
parent 6264e51db6
commit 7cb296cea1
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -82,7 +82,19 @@ class Router(c.Conversation, metaclass=abc.ABCMeta):
if match: if match:
conversation = self.by_pattern[pattern] conversation = self.by_pattern[pattern]
log.debug(f"Matched with {pattern!r}, running conversation {conversation}") log.debug(f"Matched with {pattern!r}, running conversation {conversation}")
await conversation(_sentry=_sentry, **kwargs, _conv=conversation, _router=self) await conversation(
**kwargs,
_sentry=_sentry,
_conv=conversation,
_msg=msg,
_text=text,
_router=self,
)
return return
else: else:
log.debug("No matches found") log.debug("No matches found")
__all__ = (
"Router",
)