def on_start(): cmd.register('/help', lambda msg, user: tell(user, HELP)) cmd.register('/firsttime', lambda msg, user: tell(user, FIRSTTIME)) cmd.register('/rules', lambda msg, user: tell(user, RULES)) cmd.register('/info', lambda msg, user: tell(user, INFO)) cmd.register('/tech', lambda msg, user: tell(user, TECH))
def on_start(): re_name = r'(?:[^"][^ ]+|"(?:[^"]|\\")+")' register("/zone view", zonelist) register("/zone view (%s)" % re_name, zoneinfo) register("/zone here", zonehere) register("/zone new (%s) (.*)" % re_name, zonenew) register("/zone destroy (%s)" % re_name, zonedestroy) register("/zone help", helplist) register("/zone help ([^ ]+)", helpinfo)
def on_start(): cmds.register(":(.*)", on_cmd) cmds.register("/menus", lambda msg, user: tell(user, MENU_HELP))
def on_start(): zones.new_zone_hooks.append(set_confirm) register("/zone op help", ophelp) register("/zone op wool (.*)", zonewool) register("/zone op wool-all (.*)", zonewoolall) register("/wool", morewool) register("/zone op confirm (.*)", zoneconfirm) register('/zone op modify "([^"]+)" ([^ ]+) (.*)', zonemodify)
def on_start(): cmd.register('/color (.*)', on_command) cmd.register('/color ?', no_command)
def on_start(): register("/zone new", start_menu)
def on_start(): cmd.register(r'/(.*)', uncaught_command)
def on_start(): cmd.register('/menu-test', lambda msg, user: start_menu(user))
def on_start(): re_name = r'(?:[^"][^ ]+|"(?:[^"]|\\")+")' register("/acls help", aclhelp) register("/acls commands", aclcmdhelp) register("/acls (%s) set ([^ ]+)((?: [A-Z]+)+)?" % re_name, aclset) register("/acls (%s) add ([^ ]+) ([A-Z]+)" % re_name, acladd) register("/acls (%s) remove ([^ ]+) ([A-Z]+)" % re_name, aclrm) register("/acls (%s) clear ([^ ]+)" % re_name, aclclear) register("/acls op", ophelp) register("/acls op force (on|off)", opforce)
def on_start(): cmd.register('/test', on_cmd)
def on_start(): cmd.register('/slimeballs', on_cmd)