Exemplo n.º 1
0
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))
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
def on_start():
	cmds.register(":(.*)", on_cmd)
	cmds.register("/menus", lambda msg, user: tell(user, MENU_HELP))
Exemplo n.º 4
0
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)
Exemplo n.º 5
0
def on_start():
	cmd.register('/color (.*)', on_command)
	cmd.register('/color ?', no_command)
Exemplo n.º 6
0
def on_start():
	register("/zone new", start_menu)
Exemplo n.º 7
0
def on_start():
	cmd.register(r'/(.*)', uncaught_command)
Exemplo n.º 8
0
def on_start():
	cmd.register('/menu-test', lambda msg, user: start_menu(user))
Exemplo n.º 9
0
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)
Exemplo n.º 10
0
def on_start():
	cmd.register('/test', on_cmd)
Exemplo n.º 11
0
def on_start():
	cmd.register('/slimeballs', on_cmd)