Spicadox / auto-twitcasting

A script that tracks Twitcasting live streams(using the Twitcasting API), sends it to a discord webhook and then downloads it.
7 stars 0 forks source link

Deprecation warning in console Python 3.12 #3

Open PeanutAria opened 10 months ago

PeanutAria commented 10 months ago
auto-twitcasting\index.py:445: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  passwords.add(datetime.utcnow().strftime("%Y%m%d"))

Error appears in console but not in logs. For now, it doesn't effect the script from downloading both protected and unprotected live.

Spicadox commented 10 months ago

Thanks for the heads up. I'll have to make sure I make the changes to ensure 3.12 support before it becomes an issue. I'll push the changes out in the near future.