@botcmd
def archive(self, rcv, args):
- """
- **command** ``!archive pkg-name`` : Returns package versions
- (by suite)"""
+ """Fetches package info from the archive
+
+ ``!archive pkg-name`` : Returns package versions (by suite)"""
if not args:
return
if len(args) > 1:
@botcmd
def bugs(self, rcv, args):
- """
- **command** ``!bugs pkg-name`` : Returns latest bug reports if any
+ """Gets bugs info from the BTS
+
+ ``!bugs pkg-name`` : Returns latest bug reports if any
"""
if not args:
return
@botcmd
def tell(self, message, args):
- """
- **commands**:
+ """Drops a message to be sent when someone gets online.
- * ``!tell queue`` : messages in queue
- * ``!tell <nick> <msg>`` : append <msg> to <nick> in queue"""
+ * ``!tell queue`` : messages in queue
+ * ``!tell <nick> <msg>``: append <msg> to <nick> in queue"""
if not len(args):
msg = 'Missing arguments:\n{}'.format(self.tell.__doc__)
self.reply(message, msg)
def feeds(self, rcv, args):
"""feeds monitors debian project related feeds.
- **commands**:
-
- * ``!feeds`` : registred feeds list
+ * ``!feeds`` : registred feeds list
* ``!feeds last`` : last check time"""
if 'last' in args:
self.reply(rcv, 'Last feeds check: %s' % self.th_mon.last_check)
class Log(Plugin):
- """Logs presence.
+ """Logs group chat participant presence.
The account running the bot need at least room moderation right to log
participants JIDs (fallback to nickname).
@botcmd(hidden=True)
def write(self, message, args):
- """
- **command** (hidden) ``!write`` : Writes log to file (use mktemp and return file location as MUC message)"""
+ """Dump/save room presences log
+
+ ``!write`` : Writes log to file (use mktemp and return file location as MUC message)"""
delay = int(time()) - Log.throttle_ts
if delay < 30:
self.log.debug('throttling file creation')
@botcmd(hidden=True)
def dump(self, message, args):
- """**command** (hidden) ``!dump`` : Dumps log as MUC message"""
+ """``!dump`` : Dumps log as MUC message"""
self.reply(message, self._format_log())
@botcmd
def ping(self, rcv, args):
"""ping's answering a pong showing the bot is alive.
+
!ping : You'll get back "pong"!
"""
msg = {'mhtml': '!<a href="{0.PongURL}">pong</a>'.format(self),