mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44: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)
|
return discord.PCMAudio(file)
|
||||||
|
|
||||||
def delete_audio_file(self):
|
def delete_audio_file(self):
|
||||||
# TODO: _might_ be unsafe, test this
|
# TODO: can't delete it yet, see as_audio_source()
|
||||||
os.remove(self.audio_filename)
|
# os.remove(self.audio_filename)
|
||||||
|
pass
|
||||||
|
|
|
@ -245,6 +245,7 @@ class DiscordBot:
|
||||||
return
|
return
|
||||||
|
|
||||||
def advance(error=None):
|
def advance(error=None):
|
||||||
|
next_file.delete_audio_file()
|
||||||
loop.create_task(self.advance_music_data(guild))
|
loop.create_task(self.advance_music_data(guild))
|
||||||
|
|
||||||
log.info(f"Starting playback of {next_file.info.title}")
|
log.info(f"Starting playback of {next_file.info.title}")
|
||||||
|
|
Loading…
Reference in a new issue