Преглед изворни кода

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…
Откажи
Сачувај