mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Fix invalid list comprehension
This commit is contained in:
parent
ae3f88cc72
commit
38a689ccf0
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ class DogCommand(rc.Command):
|
||||||
breed = args.joined()
|
breed = args.joined()
|
||||||
if breed:
|
if breed:
|
||||||
if breed == "list":
|
if breed == "list":
|
||||||
await data.reply("\n".join(["ℹ️ Razze disponibili:", [f"[c]{breed}[/c]" for breed in self._breeds]]))
|
await data.reply("\n".join(["ℹ️ Razze disponibili:", *[f"[c]{breed}[/c]" for breed in self._breeds]]))
|
||||||
if breed in self._breeds:
|
if breed in self._breeds:
|
||||||
url = f"https://dog.ceo/api/breed/{breed}/images/random"
|
url = f"https://dog.ceo/api/breed/{breed}/images/random"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue