import re import time import datetime import queues import cures import hooks import herbs import aeon_cures import events NL = chr(10) # Newline CR = chr(13) # Carriage return lock = False buffer = [] GREEN_STATUS = ansi.color['default'] + ansi.get_color('white') + ansi.get_color('b green') RED_STATUS = ansi.color['default'] + ansi.get_color('white') + ansi.get_color('b red') prompt = re.compile('^(\d+)h\, (\d+)m\, (.*)?--.*\s$') previous_stats = '' current_stats = '' pfunctions = [] pfunction_args = [] gagging = False gagnext = False def incoming_line_receiver(line): global buffer # make the current line always available core.line = line
triggers_pending_disable = [] trigger_groups_pending_disable = [] aliases = {} alias_groups = [] alias_groups_active = [] module_alias_dispatch = {} module_trigger_dispatch = {} # Twisted transport objects client_transport = None server_transport = None telnet_ping = None GREY = ansi.get_color('grey') LBLUE = ansi.get_color('light blue') DEFAULT = ansi.get_color('default') SAGE = GREY + '[' + ansi.color['magenta'] + 'SAGE' + GREY + ']:' + DEFAULT + ' ' ASAGE = ansi.color['grey'] + '[' + ansi.color['lyellow'] + 'SAGE' + ansi.color['grey'] + ']:' + ansi.color['lwhite'] + ' ' NL = chr(10) # Newline CR = chr(13) # Carriage return config_defaults = { 'name': 'Myname', 'class': '', #'lifevision': True, #'buckawns': False, #'vaulting': False, 'unknown_affliction_ticks': 4,