git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51472b1
)
Report success of sound playing.
author
CMDR furrycat
<elite@furrycat.net>
Tue, 28 Mar 2017 10:08:54 +0000
(11:08 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Tue, 28 Mar 2017 10:08:54 +0000
(11:08 +0100)
bot.py
patch
|
blob
|
history
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)