Skip to content

Commit

Permalink
Fix master skip in music cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamziee committed Nov 18, 2024
1 parent daf8344 commit 29d71d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions commands/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,13 @@ async def _skip(self, ctx: commands.Context):
return await ctx.send('Not playing any music right now...')

voter = ctx.message.author

if voter == ctx.voice_state.current.requester:
await ctx.message.add_reaction('⏭')
ctx.voice_state.skip()

elif voter == config.OWNER_ID:
await ctx.message.add_reaction('')
elif voter.id == config.OWNER_ID:
await ctx.message.add_reaction('⬆️')
await ctx.send('Master skip vote, skipping.')
ctx.voice_state.skip()

Expand Down
2 changes: 1 addition & 1 deletion ex_config (change me to config.py).py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AVA_VERSION = 'v0.9.0-beta' # Do not change this, it will help with troubleshooting later
AVA_VERSION = 'v0.9.1-beta' # Do not change this, it will help with troubleshooting later
CONFIG_VERSION = 3 # Do not change this, it will help with troubleshooting later

# Required Bot Configuration
Expand Down

0 comments on commit 29d71d6

Please sign in to comment.