Explorar el Código

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

tags/v2.0.0
Roxie Gibson hace 5 años
padre
commit
dcb2e129fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      roxbot/cogs/voice.py

+ 1
- 1
roxbot/cogs/voice.py Ver fichero

@@ -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]:

Cargando…
Cancelar
Guardar