瀏覽代碼

change challenge to more pythonic way of checking if list is empty

tags/v2.0.0
Roxie Gibson 5 年之前
父節點
當前提交
dcb2e129fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      roxbot/cogs/voice.py

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

@@ -416,7 +416,7 @@ class Voice:
paginator = commands.Paginator(prefix="", suffix="")
index = 1

if len(self.playlist[ctx.guild.id]) == 0:
if not self.playlist[ctx.guild.id]:
return await ctx.send("Nothing is up next. Maybe you should add something!")
else:
for video in self.playlist[ctx.guild.id]:

Loading…
取消
儲存