Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[info] More details credits regarding owner and project info #363

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion ballsdex/packages/info/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ async def about(self, interaction: discord.Interaction):
permissions=self.bot.application.install_params.permissions,
scopes=self.bot.application.install_params.scopes,
)

bot_info = await self.bot.application_info()
if bot_info.team:
owner = bot_info.team.name
else:
owner = bot_info.owner
owner_credits = "by the team" if bot_info.team else "by"
dex_credits = (
f"This instance is owned {owner_credits} {owner}.\nAn instance of [Ballsdex]"
f"({settings.github_link}) by El Laggron and maintained by the Ballsdex Team "
f"and community of [contributors]({settings.github_link}/graphs/contributors)."
)
embed.description = (
f"{' '.join(str(x) for x in balls)}\n"
f"{settings.about_description}\n"
Expand All @@ -106,7 +118,8 @@ async def about(self, interaction: discord.Interaction):
f"**{players_count:,}** players that caught "
f"**{balls_instances_count:,}** {settings.collectible_name}s\n"
f"**{len(self.bot.guilds):,}** servers playing\n\n"
"This bot was made by **El Laggron**, consider supporting me on my "
f"{dex_credits}\n\n"
"Consider supporting El Laggron on "
"[Patreon](https://patreon.com/retke) :heart:\n\n"
f"[Discord server]({settings.discord_invite}) • [Invite me]({invite_link}) • "
f"[Source code and issues]({settings.github_link})\n"
Expand Down
Loading