use daemon instead of deprecated setDaemon

main
nullobsi 2 years ago
parent 7a8e90ead6
commit aa08809bf6
No known key found for this signature in database
GPG Key ID: 342661C4F68CD06D

@ -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):

Loading…
Cancel
Save