mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
correctly stops sfx
and minor formatting
This commit is contained in:
parent
aa4afc3255
commit
7259ae0fcc
@ -258,7 +258,7 @@ class Audio:
|
|||||||
else:
|
else:
|
||||||
await self.bot.say("There is no sound effect with that name.")
|
await self.bot.say("There is no sound effect with that name.")
|
||||||
else:
|
else:
|
||||||
await self.bot.say("There are no valid sound effects in the data/audio/sfx folder.")
|
await self.bot.say("There are no valid sound effects in the `data/audio/sfx` folder.")
|
||||||
|
|
||||||
def get_local_sfx(self):
|
def get_local_sfx(self):
|
||||||
filenames = {}
|
filenames = {}
|
||||||
@ -325,7 +325,7 @@ class Audio:
|
|||||||
"""Stops audio activity
|
"""Stops audio activity
|
||||||
"""
|
"""
|
||||||
msg = ctx.message
|
msg = ctx.message
|
||||||
if self.music_player.is_playing():
|
if self.music_player.is_playing() or self.sfx_player.is_playing():
|
||||||
if await self.is_alone_or_admin(msg):
|
if await self.is_alone_or_admin(msg):
|
||||||
await self.close_audio()
|
await self.close_audio()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user