mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-12-03 16:24:20 +00:00
Try some things
This commit is contained in:
parent
3b9843118d
commit
53753cc399
2 changed files with 4 additions and 2 deletions
|
@ -47,5 +47,6 @@ class RoyalAudioFile(YtdlFile):
|
|||
return discord.PCMAudio(file)
|
||||
|
||||
def delete_audio_file(self):
|
||||
# TODO: _might_ be unsafe, test this
|
||||
os.remove(self.audio_filename)
|
||||
# TODO: can't delete it yet, see as_audio_source()
|
||||
# os.remove(self.audio_filename)
|
||||
pass
|
||||
|
|
|
@ -245,6 +245,7 @@ class DiscordBot:
|
|||
return
|
||||
|
||||
def advance(error=None):
|
||||
next_file.delete_audio_file()
|
||||
loop.create_task(self.advance_music_data(guild))
|
||||
|
||||
log.info(f"Starting playback of {next_file.info.title}")
|
||||
|
|
Loading…
Reference in a new issue