예제 #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)