class Bugs(Plugin):
"""Gets bugs info from the BTS
+
+ .. note::
+ This plugin depends on external module: **python-debianbts**
"""
re_bugs = re_compile(r'(?<=#)(\d{6,7})')
re_pkg = re_compile(r'(?P<package>[0-9a-z.+-]+)$')
self.bot.room, self.muc_message)
def muc_message(self, msg):
- """Handler method dealing with MUC incoming messages"""
+ """Handler method dealing with MUC incoming messages.
+
+ Intercepts bugs number in MUC messages (as #629234), replies a bug
+ summary."""
# Does not reply to myself
if msg['mucnick'] == self.bot.nick:
return
@botcmd
def bugs(self, rcv, args):
- """Intercepts bugs number in messages (as #629234), reply a bug summary.
- !bugs pkg-name : Returns latest bug reports if any
+ """
+ **command** ``!bugs pkg-name`` : Returns latest bug reports if any
"""
if not args:
return