Skip to content

Commit

Permalink
Merge pull request #2 from hitblast/actions/ruff
Browse files Browse the repository at this point in the history
🎨 Automated formatting errors fix
  • Loading branch information
hitblast authored Jan 27, 2024
2 parents 25eda31 + 73bf695 commit 7c07d8e
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 @@ -573,7 +573,7 @@ async def _ensure_voice_safety(
f'The voice state has been locked by **{inter.voice_state.locked.display_name}**.'
)

elif (not skip_play and not inter.voice_state.current):
elif not skip_play and not inter.voice_state.current:
return await inter.send("There's nothing being played at the moment.")

else:
Expand Down Expand Up @@ -726,7 +726,7 @@ async def _pause(self, inter: disnake.CommandInter) -> None:
inter.voice_state.voice.pause()
await inter.send('Paused voice state.')
else:
await inter.send("Already paused.")
await inter.send('Already paused.')

# resume
@commands.slash_command(
Expand All @@ -742,7 +742,7 @@ async def _resume(self, inter: disnake.CommandInter) -> None:
inter.voice_state.voice.resume()
await inter.send('Resumed voice state.')
else:
await inter.send("Already playing.")
await inter.send('Already playing.')

# stop
@commands.slash_command(
Expand Down

0 comments on commit 7c07d8e

Please sign in to comment.