示例#1
0
文件: tikkle.py 项目: zod/pyhkal
 def __init__(self,head):
     IRCBotMod.__init__(self,head)
     self.handleInput = self.handler
     try:
         self.tikklers = file2obj(self.filename)
     except Exception:
         self.tikklers = {}
示例#2
0
文件: karma.py 项目: zod/pyhkal
 def __init__(self,head):
     IRCBotMod.__init__(self,head)
     self.handleInput = self.handler
     try:
         self.karmadict = file2obj(self.filename)
     except IOError:
         self.karmadict = {}
示例#3
0
文件: decide.py 项目: zod/pyhkal
 def __init__(self,head):
     IRCBotMod.__init__(self,head)
     self.handleInput = self.handler
示例#4
0
文件: tikkle.py 项目: freddyb/pyhkal
 def __init__(self,head):
     IRCBotMod.__init__(self,head)
     self.handleInput = self.handler
     self.importconf()
示例#5
0
文件: admin.py 项目: zod/pyhkal
 def __init__(self,head,adminpass="******"):
     IRCBotMod.__init__(self,head)
     self.handleInput = self.handler
     self.adminpass = adminpass
示例#6
0
文件: stfu.py 项目: zod/pyhkal
 def __init__(self,head):
     IRCBotMod.__init__(self,head)
     self.regexpattern = self.regexpattern.format(self.head.mainchannel)
     self.handleInput = self.stfutrigger
     self.timer = None
示例#7
0
 def __init__(self,head):
     IRCBotMod.__init__(self,head)
     #this module has to be limited to the channel due to the possibility of quoting admin logins etc.
     self.regexpattern = self.regexpattern.format(head.mainchannel.name)
     self.handleInput = self.handler
     self.importconf()
示例#8
0
文件: admin.py 项目: freddyb/pyhkal
 def __init__(self,head):
     IRCBotMod.__init__(self,head)
     self.handleInput = self.handler
     self.storage["bot"] = self.head
     self.importconf()