class ServiceFunctions(object): """Some helper functions""" def __init__(self): self.fhandler = Filehandler() def donnerstag(self, channel, callback, msg=None, nck=None, hq=None, keys=None, pb=None): """Tell about public meeting""" callback.say(channel, self.fhandler.getcontent("./mylines/donnerstag.txt"))
class ServiceFunctions(object): """Some helper functions""" def __init__(self): self.fhandler = Filehandler() def donnerstag(self, channel, callback, msg=None, nck=None, hq=None, keys=None, pb=None): """Tell about public meeting""" callback.say(channel, \ self.fhandler.getcontent("./mylines/donnerstag.txt"))
class EasterEggFunctions(object): """Easter Egg functions""" def __init__(self): self.fhandler = Filehandler() def darkwing(self, channel, callback, msg=None, nck=None, hq=None, keys=None, pb=None): """Post a random line""" filename = "./mylines/darkwing.txt" myline = self.fhandler.getrandomline(filename) callback.say(channel, myline) def balu(self, channel, callback, msg=None, nck=None, hq=None, keys=None, pb=None): """Post a random line""" filename = "./mylines/balu.txt" myline = self.fhandler.getrandomline(filename) callback.say(channel, myline) def raspel(self, channel, callback, msg=None, nck=None, hq=None, keys=None, pb=None): """Post url to raspel""" filename = "./myurls/raspel.url" url = self.fhandler.getcontent(filename) callback.say(channel, url)
class EasterEggFunctions(object): """Easter Egg functions""" def __init__(self): self.fhandler = Filehandler() def darkwing(self, channel, callback, msg=None, nck=None, hq=None, keys=None, pb=None): """Post a random line""" filename = "./mylines/darkwing.txt" myline = self.fhandler.getrandomline(filename) callback.say(channel, myline) def balu(self, channel, callback, msg=None, nck=None, hq=None, keys=None, pb=None): """Post a random line""" filename = "./mylines/balu.txt" myline = self.fhandler.getrandomline(filename) callback.say(channel, myline) def raspel(self, channel, callback, msg=None, nck=None, hq=None, keys=None, pb=None): """Post url to raspel""" filename = "./myurls/raspel.url" url = self.fhandler.getcontent(filename) callback.say(channel, url)