Skip to content

Commit

Permalink
Merge pull request #310 from IgKniteDev/actions/ruff
Browse files Browse the repository at this point in the history
🎨 Automated formatting errors fix
  • Loading branch information
hitblast authored Jan 10, 2025
2 parents 0cbd27b + 577433d commit abc6fd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def __init__(self, *, url: str, volume: float, timeout: float = 60) -> None:
super().__init__(timeout=timeout)

self.add_item(disnake.ui.Button(label='Redirect', url=url))
self.add_item(disnake.ui.Button(label=f'Volume: {int(volume*100)}'))
self.add_item(disnake.ui.Button(label=f'Volume: {int(volume * 100)}'))


# View for the `queue` command.
Expand Down Expand Up @@ -758,7 +758,7 @@ async def _lock(self, inter: disnake.CommandInter) -> None:
inter.author if not inter.voice_state.locked else None
)
await inter.send(
f"{'Unlocked' if not inter.voice_state.locked else 'Locked'} the current voice state."
f'{"Unlocked" if not inter.voice_state.locked else "Locked"} the current voice state.'
)

# now
Expand Down Expand Up @@ -970,7 +970,7 @@ async def _loop(self, inter: disnake.CommandInter) -> None:

inter.voice_state.loop = not inter.voice_state.loop
await inter.send(
f"Loop has been {'enabled' if inter.voice_state.loop else 'disabled'}!"
f'Loop has been {"enabled" if inter.voice_state.loop else "disabled"}!'
)

# Common backend for play-labelled commands.
Expand Down

0 comments on commit abc6fd4

Please sign in to comment.