def __init__(self, loop, tox, config): super().__init__(tox) self.loop = loop self.nick = self.bot.get('name') self.config = importlib.import_module(config) self.key = self.config.key self.msglimit = 1300 self.deprefix = dePrefix() self.normalize = Normalize(newline='\n', escape=False, convert=False) self.modules = importlib.import_module('modules')
def __init__(self, loop, tox, config): super().__init__(tox) self.loop = loop self.nick = self.bot.get('name') self.config = importlib.import_module(config) self.key = self.config.key self.lines = {} self.time = 60 self.msglimit = 1300 self.deprefix = dePrefix() self.normalize = Normalize(newline='\n', escape=False, convert=False) self.modules = importlib.import_module('modules')
def __init__(self, loop, config): self.config = importlib.import_module(config) super().__init__(self.config.host, self.config.port, **self.config.option) #self.loop = loop self.admin = self.config.admin self.nick = self.config.nick self.login = self.config.login self.password = self.config.password self.channel = self.config.channel self.key = self.config.key # (512 - 2) / 3 = 170 # 430 bytes should be safe # not really, for #archlinux-cn-offtopic self.msglimit = 420 self.deprefix = dePrefix() self.normalize = Normalize() self.modules = importlib.import_module('modules')
def __init__(self, loop, config): self.config = importlib.import_module(config) super().__init__(self.config.host, self.config.port, **self.config.option) self.loop = loop self.admin = self.config.admin self.nick = self.config.nick self.login = self.config.login self.password = self.config.password self.channel = self.config.channel self.key = self.config.key self.lines = {} self.time = 60 # (512 - 2) / 3 = 170 # 430 bytes should be safe self.msglimit = 430 self.deprefix = dePrefix() self.normalize = Normalize() self.modules = importlib.import_module('modules')