def pb_notify (nick, data, oc): if oc: vh.SendToOpChat (pb_nmdc (data), nick) vh.ScriptCommand ("opchat_to_all", "<%s> %s" % (nick, data)) else: vh.mc (pb_nmdc (data), nick) vh.ScriptCommand ("chat_to_all", "<%s> %s" % (nick, data))
def start_testing(self, callback=None): if not self.test_is_active: self.test_is_active = True self.start_time = time.time() sys.stdout.flush() vh.mc("I'm running n test, and there aren't supposed to be any people online.") vh.mc("If this surprises you, you shouldn't have set the hub_name to %s." % special_hub_name) print("\n================ Starting VH Integration Test ================\n") sys.stdout.flush() callback()