Open tribela opened 7 years ago
respond_to and listen_to are receiving regex pattern as it's argument like hello (.+?). But I want to name some group to an argument. eg.
respond_to
listen_to
hello (.+?)
@respond_to(r'run code (\"|\')(?P<code>.+?)\1(?: (\"|\')(?P<argument>)\3)?') def run_code(message, code, argument=None): pass
It can be very useful. If you like to, I can make PR for it.
@Kjwon15 sorry for the late reply. It seems handy if we support this. Do you still want to work on it?
Yes, I can handle this. I'll open PR when ready.
respond_to
andlisten_to
are receiving regex pattern as it's argument likehello (.+?)
. But I want to name some group to an argument. eg.It can be very useful. If you like to, I can make PR for it.