Example #1
0
	def run(self):
		try:
			self.daily_routine(skip_first_cycle = False,
							   idle_room = 'plattenbau%2.eigenheim',
							   idle_room_alt = 'plattenbau.plattenbau',
							   care_pets = True,
							   care_pompom = True,
							   complete_badges = True,
							   complete_quests = True,
							   maintain_amount = 200,
							   overload_amount = 75,
							   min_deliver_amount = 3,
							   loop_min_idle_sec = 2.5 * 60 * 60,
							   loop_max_idle_sec = 4 * 60 * 60)
		except Exception as e:
			log_error(e)
Example #2
0
	def startup_bot(bot):
		try:
			bot.boot()
			bot.start()
		except Exception as e:
			log_error(e)
Example #3
0
		if not bot.init():
			bots.remove(bot)
	
	print(len(bots), 'Account(s) running...')
	
	def startup_bot(bot):
		try:
			bot.boot()
			bot.start()
		except Exception as e:
			log_error(e)
	
	threads = []
	
	for index, bot in enumerate(bots):
		t = threading.Thread(target = startup_bot, args = [bot])
		threads.append(t)
		t.start()
		print('Started bot {}/{}.'.format(index + 1, len(bots)))
		if index + 1 < len(bots):
			start_timeout = max(START_DELAY[0], random.randint(*START_DELAY) + random.random() - 1)
			print('Waiting random timeout of {} before starting next...'.format(format_time(start_timeout)))
			time.sleep(start_timeout)
	
	print('Took {} to start.'.format(format_time(time.time() - start_time)))
	
	for t in threads:
		t.join()
except Exception as e:
	log_error(e)