mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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?'
|
prompt = 'Would you like to add another RSS feed?'
|
||||||
name = something('What\'s the name of the website?')
|
name = something('What\'s the name of the website?')
|
||||||
url = something('What\'s the URL of the RSS feed?')
|
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)
|
onStart.append('freeze %s' % name)
|
||||||
|
|
||||||
example = utils.wrapLines("""
|
example = utils.wrapLines("""
|
||||||
@ -78,7 +78,7 @@ class RSS(callbacks.Privmsg):
|
|||||||
self.lastRequest = {}
|
self.lastRequest = {}
|
||||||
self.cachedFeeds = {}
|
self.cachedFeeds = {}
|
||||||
|
|
||||||
def rsstitles(self, irc, msg, args):
|
def rss(self, irc, msg, args):
|
||||||
"""<url>
|
"""<url>
|
||||||
|
|
||||||
Gets the title components of the given RSS feed.
|
Gets the title components of the given RSS feed.
|
||||||
@ -99,7 +99,7 @@ class RSS(callbacks.Privmsg):
|
|||||||
return
|
return
|
||||||
irc.reply(msg, ' :: '.join(headlines))
|
irc.reply(msg, ' :: '.join(headlines))
|
||||||
|
|
||||||
def rssinfo(self, irc, msg, args):
|
def info(self, irc, msg, args):
|
||||||
"""<url>
|
"""<url>
|
||||||
|
|
||||||
Returns information from the given RSS feed, namely the title,
|
Returns information from the given RSS feed, namely the title,
|
||||||
|
@ -34,12 +34,12 @@ from test import *
|
|||||||
class RSSTestCase(PluginTestCase, PluginDocumentation):
|
class RSSTestCase(PluginTestCase, PluginDocumentation):
|
||||||
plugins = ('RSS',)
|
plugins = ('RSS',)
|
||||||
def testRssinfo(self):
|
def testRssinfo(self):
|
||||||
self.assertNotError('rssinfo http://slashdot.org/slashdot.rss')
|
self.assertNotError('rss info http://slashdot.org/slashdot.rss')
|
||||||
self.assertNotRegexp('rssinfo http://slashdot.org/slashdot.rss',
|
self.assertNotRegexp('rss info http://slashdot.org/slashdot.rss',
|
||||||
'-1 years')
|
'-1 years')
|
||||||
|
|
||||||
def testRsstitles(self):
|
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:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user