Report success of sound playing.
authorCMDR furrycat <elite@furrycat.net>
Tue, 28 Mar 2017 10:08:54 +0000 (11:08 +0100)
committerCMDR furrycat <elite@furrycat.net>
Tue, 28 Mar 2017 10:08:54 +0000 (11:08 +0100)
bot.py

diff --git a/bot.py b/bot.py
index 42712c4..4647983 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -556,6 +556,7 @@ async def maybe_play_sound(channel, filename, *, probability = 0.05, join = True
       await asyncio.sleep(1)
     set('playing', False)
     log.info('Finished playing {} in channel {}'.format(filename, channel))
+    return True
   except:
     log.error("Error creating ffpmeg player for {}".format(filename))
     set('playing', False)