mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Added example string.
This commit is contained in:
parent
a0bf562d7a
commit
2935c16d27
@ -85,6 +85,14 @@ def configure(onStart, afterConnect, advanced):
|
||||
onStart.append('alias %s "rssinfo %s"' % (infocmd, url))
|
||||
onStart.append('freeze %s' % infocmd)
|
||||
|
||||
example = utils.wrapLines("""
|
||||
<jemfinch> @list RSS
|
||||
<supybot> rssinfo, rsstitles
|
||||
<jemfinch> @rssinfo http://arstechnica.com/etc/rdf/ars.rdf
|
||||
<supybot> Title: Ars Technica; URL: <http://www.arstechnica.com>; Description: The PC enthusiast's resource; Last updated 1 hour, 2 minutes, and 46 seconds ago.
|
||||
<jemfinch> @rsstitles http://arstechnica.com/etc/rdf/ars.rdf
|
||||
<supybot> Macintosh Browser Smackdown :: CAIB releases Columbia accident report :: The power of subpoena: hi, you like porn? :: Et Cetera: forget the bullets, it's tooth time :: Ars Emporium Update (updated / extended) :: Google gets even cooler :: Trade secrets trump free speech protection :: OneNote student pricing gives insight into Microsoft's Tablet strategy :: Et Cetera: Diamonds on my nines and golden bullets
|
||||
""")
|
||||
|
||||
class RSS(callbacks.Privmsg):
|
||||
threaded = True
|
||||
@ -136,7 +144,8 @@ class RSS(callbacks.Privmsg):
|
||||
# check the 'modified' key, if it's there, convert it here first
|
||||
if 'modified' in feed:
|
||||
seconds = time.mktime(feed['modified'])
|
||||
when = utils.timeElapsed(time.time() - seconds) + ' ago'
|
||||
now = time.mktime(time.gmtime())
|
||||
when = utils.timeElapsed(now - seconds) + ' ago'
|
||||
else:
|
||||
when = "time unavailable"
|
||||
# The rest of the entries are all available in the channel key
|
||||
|
Loading…
Reference in New Issue
Block a user