X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sid%2Ffeeds.py;h=5494a95e6daf0f7e386b354abfcb36df4dd85e7d;hb=4a7f23317ab2236a85c3a17a00a52ac034c9bad7;hp=64ddf1217300b548ded94d947a14cc22aba3b9af;hpb=fc1ed37fe65aa46c7dce71c7fe22cd6e47bf5a10;p=sid.git diff --git a/sid/feeds.py b/sid/feeds.py index 64ddf12..5494a95 100644 --- a/sid/feeds.py +++ b/sid/feeds.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2011, 2014 kaliko +# Copyright (C) 2011, 2014, 2020 kaliko # 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 @@ -134,7 +134,14 @@ class FeedMonitor(threading.Thread): 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', @@ -157,8 +164,9 @@ class Feeds(Plugin): @botcmd def feeds(self, rcv, args): """feeds monitors debian project related feeds. - !feeds : registred feeds list - !feeds last : last check time""" + + * ``!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