mirror of
https://github.com/Floriansylvain/Risitas_BOT.git
synced 2026-08-19 11:43:16 +02:00
⚡️ - Improved the $issou command
This commit is contained in:
@@ -27,8 +27,8 @@ class OtherCmds(commands.Cog, name='Other commands'):
|
|||||||
if voice_channel is not None:
|
if voice_channel is not None:
|
||||||
voice = await voice_channel.connect()
|
voice = await voice_channel.connect()
|
||||||
voice.play(discord.FFmpegPCMAudio('../assets/issou.mp3'))
|
voice.play(discord.FFmpegPCMAudio('../assets/issou.mp3'))
|
||||||
if voice.is_playing():
|
while voice.is_playing():
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(0.5)
|
||||||
await voice.disconnect()
|
await voice.disconnect()
|
||||||
else:
|
else:
|
||||||
await ctx.send('You or the targeted person are not connected to any channel.')
|
await ctx.send('You or the targeted person are not connected to any channel.')
|
||||||
|
|||||||
Reference in New Issue
Block a user