use daemon instead of deprecated setDaemon

This commit is contained in:
nullobsi 2022-03-11 08:29:15 -08:00
parent 7a8e90ead6
commit aa08809bf6
No known key found for this signature in database
GPG key ID: 342661C4F68CD06D

View file

@ -28,7 +28,7 @@ class MyBot(commands.Bot):
@tasks.loop(43200)
async def loop_12h(self):
thread_update = threading.Thread(target=update)
thread_update.setDaemon(True)
thread_update.daemon = True
thread_update.start()
async def on_ready(self, ws):