mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-26 21:14:19 +00:00
🐛 Fixes #10
This commit is contained in:
parent
6264e51db6
commit
7cb296cea1
1 changed files with 13 additions and 1 deletions
|
@ -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",
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue