Added threads flag
This commit is contained in:
@@ -4,6 +4,7 @@ import yt_dlp
|
|||||||
import discord
|
import discord
|
||||||
import logging
|
import logging
|
||||||
import argparse
|
import argparse
|
||||||
|
import os
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord import Embed
|
from discord import Embed
|
||||||
|
|
||||||
@@ -223,6 +224,7 @@ else:
|
|||||||
bot.loop.run_until_complete(bot.start(token=args.token, reconnect=True))
|
bot.loop.run_until_complete(bot.start(token=args.token, reconnect=True))
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
bot.loop.run_until_complete(bot.close())
|
bot.loop.run_until_complete(bot.close())
|
||||||
|
os.remove("cache/*")
|
||||||
finally:
|
finally:
|
||||||
bot.loop.close()
|
bot.loop.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user