Changed names to be more generic/consistent.

This commit is contained in:
Jeremy Fincher 2003-10-21 04:22:54 +00:00
parent 3310e0cb3e
commit 1bd48bfad5
2 changed files with 6 additions and 6 deletions

View File

@ -59,7 +59,7 @@ def configure(onStart, afterConnect, advanced):
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?')
onStart.append('alias %s "rsstitles %s"' % (name, url))
onStart.append('alias %s "rss %s"' % (name, url))
onStart.append('freeze %s' % name)
example = utils.wrapLines("""
@ -78,7 +78,7 @@ class RSS(callbacks.Privmsg):
self.lastRequest = {}
self.cachedFeeds = {}
def rsstitles(self, irc, msg, args):
def rss(self, irc, msg, args):
"""<url>
Gets the title components of the given RSS feed.
@ -99,7 +99,7 @@ class RSS(callbacks.Privmsg):
return
irc.reply(msg, ' :: '.join(headlines))
def rssinfo(self, irc, msg, args):
def info(self, irc, msg, args):
"""<url>
Returns information from the given RSS feed, namely the title,

View File

@ -34,12 +34,12 @@ from test import *
class RSSTestCase(PluginTestCase, PluginDocumentation):
plugins = ('RSS',)
def testRssinfo(self):
self.assertNotError('rssinfo http://slashdot.org/slashdot.rss')
self.assertNotRegexp('rssinfo http://slashdot.org/slashdot.rss',
self.assertNotError('rss info http://slashdot.org/slashdot.rss')
self.assertNotRegexp('rss info http://slashdot.org/slashdot.rss',
'-1 years')
def testRsstitles(self):
self.assertNotError('rsstitles http://slashdot.org/slashdot.rss')
self.assertNotError('rss http://slashdot.org/slashdot.rss')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: