def __init__(self): setattr( self, "default_options", { "module_name": self.get_module_identifier()[7:], "dom_element_root": ["%dom_element_identifier%"], "dom_element_select_root": ["%dom_element_identifier%", "selected_by"], "default_max_locations": 3, "standard_location_shape": "rectangular", "run_observer_interval": 3, "run_observer_interval_idle": 10 }) setattr(self, "required_modules", [ 'module_dom', 'module_dom_management', 'module_game_environment', 'module_players', 'module_telnet', 'module_webserver' ]) self.next_cycle = 0 self.all_available_actions_dict = {} self.all_available_widgets_dict = {} Module.__init__(self)
def __init__(self): self.telnet_command_queue = deque() setattr( self, "default_options", { "module_name": self.get_module_identifier()[7:], "host": "127.0.0.1", "port": 8081, "password": "******", "max_queue_length": 100, "run_observer_interval": 3, "run_observer_interval_idle": 10, "max_telnet_buffer": 16384, "max_command_queue_execution": 6, "match_types_generic": { 'log_start': [ r"\A(?P<datetime>\d{4}.+?)\s(?P<gametime_in_seconds>.+?)\sINF .*", r"\ATime:\s(?P<servertime_in_minutes>.*)m\s", ], 'log_end': [r"\r\n$", r"\sby\sTelnet\sfrom\s(.*)\:(\d.*)\s*$"] } }) setattr(self, "required_modules", ["module_dom", "module_webserver"]) self.next_cycle = 0 self.telnet_response = "" Module.__init__(self)
def __init__(self): setattr(self, "default_options", {"module_name": self.get_module_identifier()[7:]}) setattr(self, "required_modules", ["module_dom", "module_webserver"]) self.run_observer_interval = 5 Module.__init__(self)
def __init__(self): setattr(self, "default_options", {"module_name": self.get_module_identifier()[7:]}) setattr(self, "required_modules", []) self.data = CallbackDict() self.run_observer_interval = 5 Module.__init__(self)
def __init__(self): setattr( self, "default_options", { "module_name": self.get_module_identifier()[7:], "dom_element_root": [], "dom_element_select_root": ["id"], "run_observer_interval": 3 }) setattr(self, "required_modules", [ "module_dom", "module_dom_management", "module_telnet", "module_webserver" ]) self.next_cycle = 0 Module.__init__(self)
def __init__(self): setattr( self, "default_options", { "module_name": self.get_module_identifier()[7:], "default_player_password": None }) setattr(self, "required_modules", [ 'module_dom', 'module_players', 'module_locations', 'module_webserver' ]) self.next_cycle = 0 self.run_observer_interval = 5 self.all_available_actions_dict = {} self.all_available_widgets_dict = {} Module.__init__(self)
def __init__(self): setattr( self, "default_options", { "title": "chrani-bot tng", "module_name": self.get_module_identifier()[7:], "host": "0.0.0.0", "port": 5000, "Flask_secret_key": "thisissecret", "SocketIO_asynch_mode": "gevent", "SocketIO_use_reloader": False, "SocketIO_debug": False, "engineio_logger": False }) setattr(self, "required_modules", ['module_dom']) self.next_cycle = 0 self.send_data_to_client_hook = self.send_data_to_client self.run_observer_interval = 5 Module.__init__(self)