From bee5bfa2a1e0ae94c7e7f3def0832c7c062bf36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JelNiS=C5=82aw?= Date: Wed, 30 Mar 2022 20:44:45 +0200 Subject: [PATCH] Fix watchers count --- wulkabot/cogs/github.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wulkabot/cogs/github.py b/wulkabot/cogs/github.py index 2ac89b6..bbd5ec0 100644 --- a/wulkabot/cogs/github.py +++ b/wulkabot/cogs/github.py @@ -26,10 +26,10 @@ def github_repo_embed(repo: dict[str, Any]) -> discord.Embed: description = repo["description"] if homepage := repo["homepage"]: description += f"\n\n{homepage}" - stargazers_count = repo["stargazers_count"] - forks_count = repo["forks_count"] - watchers = repo["watchers"] - footer = f"⭐ {stargazers_count} 🍴 {forks_count} 👀 {watchers}" + stargazers = repo["stargazers_count"] + forks = repo["forks_count"] + watchers = repo["subscribers_count"] + footer = f"⭐ {stargazers} 🍴 {forks} 👀 {watchers}" return ( discord.Embed(title=repo["full_name"], url=repo["html_url"], description=description)