def login_hook(self, ): self.autoinvite = self.protocol.factory.options.auto_invite self.nr_games = self.protocol.factory.options.number_of_games if self.protocol.factory.options.evaluate_mwc: self.current_gnubg = 'gnubg' log.msg("Set current_gnubg to 'gnubg'") reg = Register(self, self.requests) reg.send_command('register mwcEvaluation') MWC(self, self.requests) else: toggle = Toggle(self, self.requests) toggle.send_command('toggle') settings = Set(self, self.requests) settings.set_delay_value(self.protocol.factory.options.delay) settings.send_command('set') self.relax_hook()
def _toggle_ready(): toggle = Toggle(self, self.requests) toggle.send_command('toggle')