Added threads flag

This commit is contained in:
Lukas Blacha
2023-02-07 22:58:10 +01:00
parent 52cf259c20
commit f87f878ca4

View File

@@ -4,6 +4,7 @@ import yt_dlp
import discord
import logging
import argparse
import os
from discord.ext import commands
from discord import Embed
@@ -223,6 +224,7 @@ else:
bot.loop.run_until_complete(bot.start(token=args.token, reconnect=True))
except KeyboardInterrupt:
bot.loop.run_until_complete(bot.close())
os.remove("cache/*")
finally:
bot.loop.close()