diff --git a/sopel/trigger.py b/sopel/trigger.py index d4bff2ba8b..1a037441c0 100644 --- a/sopel/trigger.py +++ b/sopel/trigger.py @@ -128,6 +128,10 @@ class Trigger(unicode): groups = property(lambda self: self._match.groups) """The ``groups`` function of the ``match`` attribute. + See Python :mod:`re` documentation for details.""" + groupdict = property(lambda self: self._match.groupdict) + """The ``groupdict`` function of the ``match`` attribute. + See Python :mod:`re` documentation for details.""" args = property(lambda self: self._pretrigger.args) """ diff --git a/test/test_trigger.py b/test/test_trigger.py index 6fc709aeb7..86474ec685 100644 --- a/test/test_trigger.py +++ b/test/test_trigger.py @@ -148,6 +148,7 @@ def test_intents_trigger(nick): assert trigger.match == fakematch assert trigger.group == fakematch.group assert trigger.groups == fakematch.groups + assert trigger.groupdict == fakematch.groupdict assert trigger.args == ['#Sopel', 'Hello, world'] assert trigger.tags == {'intent': 'ACTION'} assert trigger.admin is True