From d2bb444f816eedc30f49ff2a12465514563d7489 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 9 Nov 2025 23:59:12 +0000 Subject: Include project name in footer --- pydis_core/exts/source.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pydis_core/exts/source.py b/pydis_core/exts/source.py index 5fe29306..064dcb2d 100644 --- a/pydis_core/exts/source.py +++ b/pydis_core/exts/source.py @@ -196,6 +196,12 @@ class SourceCode(commands.Cog, description="Displays information about the bot's embed = Embed(title=title, description=description) embed.add_field(name="Source Code", value=f"[Go to GitHub]({url})") line_text = f":{first_line}" if first_line else "" - embed.set_footer(text=f"{location}{line_text}", icon_url=GITHUB_AVATAR) + + if source_type == _SourceType.core_cog or source_type == _SourceType.core_command: + project_name = "pydis_core" + else: + project_name = self.bot.user.name + + embed.set_footer(text=f"{project_name} \N{BLACK CIRCLE} {location}{line_text}", icon_url=GITHUB_AVATAR) return embed -- cgit v1.2.3