mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
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,
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user