any-other-guy / LostArk-Endless-Chaos

💎Lost Ark Chaos Dungeon Farming Bot💎失落的方舟无限刷混沌地牢脚本
79 stars 48 forks source link

add timestamps to the console outputs #28

Open 85256638 opened 1 year ago

85256638 commented 1 year ago

image

would it be possible to add timestamps for the outputs?

BoredCoder95 commented 1 year ago

Yes,

Just add something along the lines of this to the print commands you already have

current_time = time.strftime("%H:%M:%S") print("Current Time: " + str(current_time))

Current:

print(
     "mob x: {} y: {}, r: {} g: {} b: {}".format(
          states["moveToX"], states["moveToY"], r, g, b
      )
)

With timestame:

current_time = time.strftime("%H:%M:%S")
print(
     str(current_time) + 
     " mob x: {} y: {}, r: {} g: {} b: {}".format(
          states["moveToX"], states["moveToY"], r, g, b
      )
)