# -*- coding: utf-8 -*-
-# Copyright (C) 2011, 2014 kaliko <kaliko@azylum.org>
+# Copyright (C) 2011, 2014, 2020 kaliko <kaliko@azylum.org>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
class Feeds(Plugin):
+ """
+ .. note::
+ Feeds plugin depends on external module: **feedparser**
+ """
+
+ #: Time between feeds check
TEMPO = 60
+ #: Default feeds to monitor
FEEDS = [
'https://www.debian.org/security/dsa',
'https://www.debian.org/News/news',
@botcmd
def feeds(self, rcv, args):
"""feeds monitors debian project related feeds.
- !feeds : registred feeds list
- !feeds last : last check time"""
+
+ **commands**:
+
+ * ``!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)
return