Exemple #1
0
 def __init__(self, browser, config, planets):
     self.defense_client = defense.Defense(browser, config)
     self.buildings_client = buildings.Buildings(browser, config)
     self.general_client = general.General(browser, config)
     self.url_provider = self.general_client.url_provider
     self.planets = planets
     super(BuilderBot, self).__init__(browser, config, planets)
Exemple #2
0
    def __init__(self, browser, config, planets):
        self.fleet_client = fleet.Fleet(browser, config)
        self.general_client = general.General(browser, config)
        self.movement_client = movement.Movement(browser, config)
        self.hangar_client = hangar.Hangar(browser, config)

        super(AttackerBot, self).__init__(browser, config, planets)
Exemple #3
0
    def __init__(self, browser, config):
        # Authenticate and get browser instance
        self.config = config
        self.logger = logging.getLogger('OGBot')

        # Get planets and remove excluded planets in the config file
        planets = general.General(browser, config).get_planets()
        planets = filter(lambda x: x.name.lower() not in config.excluded_planets, planets)

        self.attacker_bot = attacker.AttackerBot(browser, config, planets)
        self.defender_bot = defender.DefenderBot(browser, config, planets)
        self.spy_bot = spy.SpyBot(browser, config, planets)
        self.expeditionary_bot = expeditionary.ExpeditionaryBot(browser, config, planets)
        self.logger_bot = logger.LoggerBot(browser, config, planets)
        self.transporter_bot = transporter.TransporterBot(browser, config, planets)
        self.builder_bot = builder.BuilderBot(browser, config, planets)
        self.messages_bot = messages.MessagesBot(browser, config, planets)
        self.researcher_bot = researcher.ResearcherBot(browser, config, planets)
        self.movement_bot = movement.MovementBot(browser, config, planets)
        self.sms_sender = sms.SMSSender(config)
Exemple #4
0
    def __init__(self, browser, config):
        # Authenticate and get browser instance
        self.config = config
        self.logger = logging.getLogger('OGBot')

        self.general_client = general.General(browser, config)
        planets = self.general_client.get_planets()
        self.planets = planets

        self.attacker_bot = attacker.AttackerBot(browser, config, planets)
        self.defender_bot = defender.DefenderBot(browser, config, planets)
        self.spy_bot = spy.SpyBot(browser, config, planets)
        self.expeditionary_bot = expeditionary.ExpeditionaryBot(
            browser, config, planets)
        self.logger_bot = logger.LoggerBot(browser, config, planets)
        self.transporter_bot = transporter.TransporterBot(
            browser, config, planets)
        self.builder_bot = builder.BuilderBot(browser, config, planets)
        self.messages_bot = messages.MessagesBot(browser, config, planets)
        self.researcher_bot = researcher.ResearcherBot(browser, config,
                                                       planets)
        self.movement_bot = movement.MovementBot(browser, config, planets)
        self.sms_sender = sms.SMSSender(config)
Exemple #5
0
    def __init__(self, browser, config, planets):
        self.messages_client = messages.Messages(browser, config)
        self.general_client = general.General(browser, config)

        super(MessagesBot, self).__init__(browser, config, planets)
Exemple #6
0
 def __init__(self, browser, config, planets):
     self.defense_client = defense.Defense(browser, config)
     self.general_client = general.General(browser, config)
     self.planets = planets
     super(DefenderBot, self).__init__(browser, config, planets)
Exemple #7
0
    def __init__(self, browser, config, planets):
        self.fleet_client = fleet.Fleet(browser, config)
        self.hangar_client = hangar.Hangar(browser, config)
        self.general_client = general.General(browser, config)

        super(TransporterBot, self).__init__(browser, config, planets)
Exemple #8
0
 def __init__(self, browser, config, planets):
     self.research_client = research.Research(browser, config)
     self.general_client = general.General(browser, config)
     self.planets = planets
     super(ResearcherBot, self).__init__(browser, config, planets)