Esempio n. 1
0
 def dilbert(self, mess, args):
     """ by Scott Adams
     http://www.dilbert.com/
     """
     urls = extract_rss_urls('http://feed.dilbert.com/dilbert/most_popular?format=xml')
     urls.extend(extract_rss_urls('http://feed.dilbert.com/dilbert/daily_strip?format=xml'))
     return {'content': 'Random Dilbert', 'url': choice(urls)}
Esempio n. 2
0
 def dilbert(self, mess, args):
     """ by Scott Adams
     http://www.dilbert.com/
     """
     urls = extract_rss_urls(
         'http://feed.dilbert.com/dilbert/most_popular?format=xml')
     urls.extend(
         extract_rss_urls(
             'http://feed.dilbert.com/dilbert/daily_strip?format=xml'))
     return {'content': 'Random Dilbert', 'url': choice(urls)}
Esempio n. 3
0
 def xkcd(self, mess, args):
     """
     Display random XKCD from RSS feed from http://xkcd.com
     """
     urls = extract_rss_urls('http://xkcd.com/rss.xml')
     return {'content': 'Random XKCD', 'url': choice(urls)}
Esempio n. 4
0
 def xkcd(self, mess, args):
     """
     Display random XKCD from RSS feed from http://xkcd.com
     """
     urls = extract_rss_urls('http://xkcd.com/rss.xml')
     return {'content': 'Random XKCD', 'url': choice(urls)}