From c9ab21033e38ef1bb121099038a55253032423fe Mon Sep 17 00:00:00 2001
From: kaliko <kaliko@azylum.org>
Date: Sat, 2 May 2020 18:44:47 +0200
Subject: [PATCH] Cleanup

---
 bot.py       | 18 +++++-------------
 sid/feeds.py |  8 +++-----
 2 files changed, 8 insertions(+), 18 deletions(-)

diff --git a/bot.py b/bot.py
index d283db9..42644bc 100644
--- a/bot.py
+++ b/bot.py
@@ -17,20 +17,12 @@ def main():
     xmpp = MUCBot(JID, PASS, ROOM, NICK)
     xmpp.register_bot_plugin(Feeds)
     xmpp.register_bot_plugin(Ping)
-    # Connect to the XMPP server and start processing XMPP stanzas.
-    if xmpp.connect():
-        # If you do not have the dnspython library installed, you will need
-        # to manually specify the name of the server if it does not match
-        # the one in the JID. For example, to use Google Talk you would
-        # need to use:
-        #
-        # if xmpp.connect(('talk.google.com', 5222)):
-        #     ...
-        xmpp.process(block=True)
+    try:
+        xmpp.connect()
+        xmpp.process()
+    except KeyboardInterrupt:
         xmpp.shutdown_plugins()
-        xmpp.log.info('Done')
-    else:
-        xmpp.log.info('Unable to connect.')
+    xmpp.log.info('Done')
 
 # Script starts here
 if __name__ == '__main__':
diff --git a/sid/feeds.py b/sid/feeds.py
index 5a33d6d..2cb0964 100644
--- a/sid/feeds.py
+++ b/sid/feeds.py
@@ -136,13 +136,11 @@ class Feeds(Plugin):
         # not working <http://bugs.debian.org/612274>
         # 'http://www.debian.org/News/news',
 
-        # DPN in french
-        'http://www.debian.org/News/weekly/dwn.fr.rdf',
+        # Some packages
+        'https://tracker.debian.org/pkg/prosody/rss',
+        'https://tracker.debian.org/pkg/ejabberd/rss',
 
         # Misc
-        'http://rss.gmane.org/topics/excerpts/gmane.linux.debian.devel.announce',
-        'http://rss.gmane.org/gmane.linux.debian.user.security.announce',
-        'http://planet-fr.debian.net/users/rss20.xml',
         'http://planet.debian.org/atom.xml',
         ]
 
-- 
2.39.5