main.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 = [
  10. "oil",
  11. "ore",
  12. "uranium",
  13. "diamonds",
  14. "liquid_oxygen",
  15. "helium-3",
  16. "rivalium",
  17. "antirad",
  18. "spacerockets",
  19. "lss",
  20. "tanks",
  21. "aircrafts",
  22. "missiles",
  23. "bombers",
  24. "battleships",
  25. "laser_drones",
  26. "moon_tanks",
  27. "space_stations",
  28. ]
  29. verkoopprijs = [
  30. 164,
  31. 150,
  32. 1999,
  33. 1500000,
  34. 4000,
  35. 800000,
  36. 500000000,
  37. 500000000,
  38. 500000000,
  39. 500000000,
  40. 500000000,
  41. 500000000,
  42. 500000000,
  43. 500000000,
  44. 500000000,
  45. 500000000,
  46. 500000000,
  47. 19888000,
  48. ]
  49. koopprijs = [
  50. 100,
  51. 100,
  52. 1000,
  53. 100000,
  54. 2000,
  55. 100000,
  56. 1,
  57. 1,
  58. 1,
  59. 1,
  60. 1,
  61. 1,
  62. 1,
  63. 1,
  64. 1,
  65. 1,
  66. 1,
  67. 1,
  68. ]
  69. i = 0
  70. for x in soorten:
  71. buy_bot.BuyMarket(authentication).info(soorten[i], koopprijs[i])
  72. SellBot.MarketBot(authentication).info(soorten[i], verkoopprijs[i])
  73. i = i + 1
  74. now = datetime.now()
  75. current_time = now.strftime("%H:%M:%S")
  76. print("Current Time =", current_time)
  77. time.sleep(301)