import re import random import urllib.request import json import pickle import minqlbot # Movement Style: pql or vql mode = "pql" maps = ["arkinholm", "basesiege", "beyondreality", "blackcathedral", "brimstoneabbey", "campercrossings", "campgrounds", "citycrossings", "courtyard", "deepinside", "distantscreams", "divineintermission", "duelingkeeps", "electrocution", "falloutbunker", "finnegans", "fluorescent", "foolishlegacy", "futurecrossings", "gospelcrossings", "henhouse", "industrialrevolution", "infinity", "innersanctums", "ironworks", "japanesecastles", "jumpwerkz", "newcerberon", "overlord", "pillbox", "pulpfriction", "qzpractice1", "qzpractice2", "ragnarok", "railyard", "rebound", "reflux", "repent", "scornforge", "shakennotstirred", "shiningforces", "siberia", "skyward", "spacechamber", "spacectf", "spidercrossings", "stonekeep", "stronghold", "theatreofpain", "theedge", "trinity", "troubledwaters", "warehouse"] class race(minqlbot.Plugin): def __init__(self): self.add_hook("map", self.handle_map) self.add_hook("game_end", self.handle_game_end) self.add_hook("console", self.handle_console) self.add_hook("scores", self.handle_scores) self.add_command("update", self.cmd_update) self.add_command(("rank", "srank"), self.cmd_rank, usage="[rank] [map]") self.add_command("top100", self.cmd_top100, usage="[map]") self.add_command(("pb", "me", "spb", "sme"), self.cmd_pb, usage="[map]") self.add_command(("time", "stime"), self.cmd_time, usage=" [map]") self.add_command(("ranktime", "sranktime"), self.cmd_ranktime, usage="