mirror of
https://github.com/fotoente/MIsskey-ebooks-bot
synced 2024-11-12 22:57:08 +00:00
User daemon instead of setDaemon
This commit is contained in:
parent
09a7efbcbf
commit
b86ece6131
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