瀏覽代碼

fixed force skip

tags/v1.6.0
Roxie Gibson 6 年之前
父節點
當前提交
1c58180827
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      Roxbot/cogs/voice.py

+ 1
- 1
Roxbot/cogs/voice.py 查看文件

@@ -314,7 +314,7 @@ class Voice:
"""Skips or votes to skip the current video. Use option "--force" if your an admin and """
voice = guild_settings.get(ctx.guild).voice
if ctx.voice_client.is_playing():
if voice["skip_voting"] or (option == "--force" and checks._is_admin_or_mod(ctx)): # Admin force skipping
if voice["skip_voting"] and not (option == "--force" and checks._is_admin_or_mod(ctx)): # Admin force skipping
if ctx.author in self.skip_votes[ctx.guild.id]:
return await ctx.send("You have already voted to skip the current track.")
else:

Loading…
取消
儲存