From 8a835a0b152e5f196b3ee58ebc451a7e9c70edbc Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 6 Aug 2004 09:52:36 +0000 Subject: [PATCH] Removed configure and added a class docstring. --- plugins/RSS.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/plugins/RSS.py b/plugins/RSS.py index dcb15e0eb..dbfb8c57e 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -55,17 +55,6 @@ import supybot.privmsgs as privmsgs import supybot.registry as registry import supybot.callbacks as callbacks -def configure(advanced): - from supybot.questions import output, expect, anything, something, yn - conf.registerPlugin('RSS', True) - prompt = 'Would you like to add an RSS feed?' - while yn(prompt): - prompt = 'Would you like to add another RSS feed?' - name = something('What\'s the name of the website?') - url = something('What\'s the URL of the RSS feed?') - # XXX How should we fix this? I'm thinking just remove it. - registerFeed(name, url) - class AnnouncedFeeds(registry.SpaceSeparatedListOfStrings): List = callbacks.CanonicalNameSet @@ -93,6 +82,10 @@ conf.registerGlobalValue(conf.supybot.plugins.RSS, 'feeds', commands.""")) class RSS(callbacks.Privmsg): + """This plugin is useful both for announcing updates to RSS feeds in a + channel, and for retrieving the headlines of RSS feeds via command. Use + the "add" command to add feeds to this plugin, and use the "announce" + command to determine what feeds should be announced in a given channel.""" threaded = True def __init__(self): callbacks.Privmsg.__init__(self)