예제 #1
0
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
     self.ongoingPings = {}
     try:
         from bs4 import BeautifulSoup
         self.bs = BeautifulSoup
     except ImportError:
         log.warn("Unmet dependency BeautifulSoup4: The URL checkers will be disabled.")
예제 #2
0
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
     self.danceCooldown = {}
     self.danceCooldownTime = None
     self.privileged_users = [
         "KennethD",
         "_404`d",
         "Mathias"
     ]
     self.privileged_responses = {}
     self.randomresponses = {
         "hi everybody!": "Hi Dr. Nick!",
     }
예제 #3
0
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
     self.channelJoinQueue = []
     self.haveVhost = False
     self.haveIdentified = False
     log.info("HostServ module enabled, all joins will be cancelled until we have received a vhost.")
예제 #4
0
파일: lastfm.py 프로젝트: 404d/Bones-IRCBot
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
     self.apikey = self.settings.get("module.Lastfm", "apikey")
     self.log = logging.getLogger(".".join([__name__, "Lastfm"]))
예제 #5
0
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
     self.prefixChars = self.settings.get("bot", "triggerPrefixes")
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
     self.time_fmt = "\x0309%H:%M:%S \x0312%d.%m.%Y %Z"
예제 #8
0
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
     
     self.danceCooldown = {}
     self.danceCooldownTime = None
예제 #9
0
 def __init__(self, *args, **kwargs):
     Module.__init__(self, *args, **kwargs)
     self.nickIWant = None
     self.isRecovering = False