Fix watchers count

This commit is contained in:
JelNiSław 2022-03-30 20:44:45 +02:00
parent dae062257a
commit bee5bfa2a1
No known key found for this signature in database
GPG key ID: EA41571A0A88E97E

View file

@ -26,10 +26,10 @@ def github_repo_embed(repo: dict[str, Any]) -> discord.Embed:
description = repo["description"] description = repo["description"]
if homepage := repo["homepage"]: if homepage := repo["homepage"]:
description += f"\n\n{homepage}" description += f"\n\n{homepage}"
stargazers_count = repo["stargazers_count"] stargazers = repo["stargazers_count"]
forks_count = repo["forks_count"] forks = repo["forks_count"]
watchers = repo["watchers"] watchers = repo["subscribers_count"]
footer = f"{stargazers_count} 🍴 {forks_count} 👀 {watchers}" footer = f"{stargazers} 🍴 {forks} 👀 {watchers}"
return ( return (
discord.Embed(title=repo["full_name"], url=repo["html_url"], description=description) discord.Embed(title=repo["full_name"], url=repo["html_url"], description=description)