Formatting.

This commit is contained in:
Filip Strajnar 2024-08-09 13:16:52 +02:00
parent f9b121c96b
commit 93ee2bb257
6 changed files with 16 additions and 19 deletions

1
.gitignore vendored
View file

@ -166,3 +166,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear # and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/

View file

@ -6,12 +6,15 @@ from pynput.keyboard import Key
bot = SuperBot() bot = SuperBot()
timer = hours(8) timer = hours(8)
def press_overload(): def press_overload():
bot.press_key('7') bot.press_key('7')
def press_loot(): def press_loot():
bot.press_key(' ') bot.press_key(' ')
overload = Interval(timedelta(seconds=330), press_overload) overload = Interval(timedelta(seconds=330), press_overload)
loot = Interval(timedelta(seconds=70), press_loot) loot = Interval(timedelta(seconds=70), press_loot)

View file

@ -13,9 +13,7 @@ bar = ChargingBar(max=inventories)
for inventory in range(inventories): for inventory in range(inventories):
progress = (inventory + 1) * 100 / inventories progress = (inventory + 1) * 100 / inventories
print( print(f"{datetime.now()}: Inventory {inventory + 1}")
f"{datetime.now()}: Inventory {inventory + 1}"
)
bar.next() bar.next()
print() print()
print() print()

View file

@ -2,7 +2,6 @@ from super_bot import SuperBot
from datetime import datetime from datetime import datetime
from progress.bar import ChargingBar from progress.bar import ChargingBar
bot = SuperBot() bot = SuperBot()
bot.random_sleep(5000, 6000) bot.random_sleep(5000, 6000)
@ -14,9 +13,7 @@ bar = ChargingBar(max=inventories)
for inventory in range(inventories): for inventory in range(inventories):
progress = (inventory + 1) * 100 / inventories progress = (inventory + 1) * 100 / inventories
print( print(f"{datetime.now()}: Inventory {inventory + 1}")
f"{datetime.now()}: Inventory {inventory + 1}"
)
bar.next() bar.next()
print() print()
print() print()

View file

@ -1,7 +1,6 @@
from super_bot import SuperBot from super_bot import SuperBot
from super_bot.timer import hours from super_bot.timer import hours
bot = SuperBot() bot = SuperBot()
timer = hours(4) timer = hours(4)
bot.random_sleep(1000, 2000) bot.random_sleep(1000, 2000)

View file

@ -3,7 +3,6 @@ from datetime import datetime, timedelta
from super_bot.timer import Timer from super_bot.timer import Timer
from subprocess import run from subprocess import run
bot = SuperBot() bot = SuperBot()
bot.random_sleep(5000, 6000) bot.random_sleep(5000, 6000)