Fix watchers count
This commit is contained in:
parent
dae062257a
commit
bee5bfa2a1
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue