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)
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)
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)