mirror of https://github.com/Mikaela/Limnoria.git
Changed names to be more generic/consistent.
This commit is contained in:
parent
3310e0cb3e
commit
1bd48bfad5
|
@ -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,
|
||||
|
|
|
@ -39,7 +39,7 @@ class RSSTestCase(PluginTestCase, PluginDocumentation):
|
|||
'-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:
|
||||
|
|
Loading…
Reference in New Issue