Beispiel #1
0
 def listjobs(self, sender, message, channel, is_ping, reply):
     self.log("%s asked for all jobs" % sender)
     for job in scrape_jobs():
         self.reply_to(job, sender)
Beispiel #2
0
 def listsearch(self, sender, message, channel, is_ping, reply):
     search = message.replace('!listsearch', '').strip().lower()
     self.log("%s searched for \"%s\"" % (sender, search))
     for job in scrape_jobs(search=search):
         self.reply_to(job, sender)
Beispiel #3
0
 def listlatest(self, sender, message, channel, is_ping, reply):
     self.log("%s asked for latest jobs" % sender)
     for job in scrape_jobs(limit=10):
         self.reply_to(job, sender)