mirror of
https://github.com/fotoente/MIsskey-ebooks-bot
synced 2024-11-12 22:57:08 +00:00
use daemon instead of deprecated setDaemon
This commit is contained in:
parent
7a8e90ead6
commit
aa08809bf6
1 changed files with 1 additions and 1 deletions
2
rdbot.py
2
rdbot.py
|
@ -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…
Reference in a new issue