1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-06-03 09:01:04 +02:00

fixed delete of *.mp3

This commit is contained in:
Jonas Leder 2020-04-10 21:24:44 +02:00
parent 22b270f9d4
commit 8663128b91

4
bot.py
View file

@ -451,7 +451,9 @@ async def stop(ctx):
await player.disconnect()#disconnect from the voice chat
player = None#clear the player variable
playerServer = None#allow everyone to invite the music bot
remove("*.mp3")#delete all mp3 files
for files in listdir("."):#delete all mp3 files
if files.endswith(".mp3"):
remove(files)