main.py 1.0 KB

123456789101112131415161718192021222324
  1. from rival_regions_wrapper.middleware import LocalAuthentication
  2. import time
  3. from datetime import datetime
  4. import SellBot
  5. import buy_bot
  6. authentication = LocalAuthentication(True)
  7. authentication.set_credentials("mail@gmail.com","password","google")
  8. while True:
  9. soorten = ['oil','ore', 'uranium', 'diamonds','liquid_oxygen','helium-3','rivalium','antirad','spacerockets','lss','tanks','aircrafts','missiles','bombers','battleships','laser_drones','moon_tanks','space_stations']
  10. verkoopprijs = [164,150,1999,1500000,4000,800000,500000000,500000000,500000000,500000000,500000000,500000000,500000000,500000000,500000000,500000000,500000000,19888000]
  11. koopprijs = [100,100,1000,100000,2000,100000,1,1,1,1,1,1,1,1,1,1,1,1]
  12. i = 0
  13. for x in soorten:
  14. buy_bot.BuyMarket(authentication).info(soorten[i], koopprijs[i])
  15. SellBot.MarketBot(authentication).info(soorten[i], verkoopprijs[i])
  16. i = i+1
  17. now = datetime.now()
  18. current_time = now.strftime("%H:%M:%S")
  19. print("Current Time =", current_time)
  20. time.sleep(301)