コード例 #1
0
ファイル: wtf.py プロジェクト: tahnok/kittybot2
 def wtf(self):
     choices = ['http://strangeweirdporn.com/feed/', 'http://www.scarysextoyfriday.com/feeds/posts/default']
     rickroll = False
     if random.randint(0,9) == 9: 
         rickroll = True
     return rss.getitem(choices[random.randint(0, len(choices) -1)], rickroll)
コード例 #2
0
ファイル: flickr.py プロジェクト: tahnok/kittybot2
 def flickr(self, tag):
     rickroll = False
     if random.randint(0,9) == 9:
         rickroll = True
     return rss.getitem("http://api.flickr.com/services/feeds/photos_public.gne?tags=%s&lang=en-us&format=rss_200" % tag, rickroll)