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:
parent
22b270f9d4
commit
8663128b91
4
bot.py
4
bot.py
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue