Skip to content

Commit

Permalink
[Discord] Improve radio command formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Nov 20, 2023
1 parent 4a77435 commit 9fc8fe9
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Discord/cogs/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,20 +468,30 @@ async def radio(
'''
if setting:
if self.players[ctx.guild.id].radio_flag:
await ctx.embed_reply(f"{ctx.bot.error_emoji} Radio is already on")
await ctx.embed_reply(
f"{ctx.bot.error_emoji} Radio is already on"
)
elif (await self.players[ctx.guild.id].radio_on(ctx)) is False:
await ctx.embed_reply(":warning: Something else is already playing\nPlease stop it first")
await ctx.embed_reply(
":warning: Something else is already playing\n"
"Please stop it first"
)
elif setting is False:
if self.players[ctx.guild.id].radio_flag:
self.players[ctx.guild.id].radio_off()
await ctx.embed_reply("\N{OCTAGONAL SIGN} Turned radio off")
else:
await ctx.embed_reply(f"{ctx.bot.error_emoji} Radio is already off")
await ctx.embed_reply(
f"{ctx.bot.error_emoji} Radio is already off"
)
elif self.players[ctx.guild.id].radio_flag:
self.players[ctx.guild.id].radio_off()
await ctx.embed_reply("\N{OCTAGONAL SIGN} Turned radio off")
elif (await self.players[ctx.guild.id].radio_on(ctx)) is False:
await ctx.embed_reply(":warning: Something else is already playing\nPlease stop it first")
await ctx.embed_reply(
":warning: Something else is already playing\n"
"Please stop it first"
)

@audio.command(name = "search")
@checks.not_forbidden()
Expand Down

0 comments on commit 9fc8fe9

Please sign in to comment.