diff options
| author | 2025-11-09 23:59:12 +0000 | |
|---|---|---|
| committer | 2025-11-10 00:01:22 +0000 | |
| commit | d2bb444f816eedc30f49ff2a12465514563d7489 (patch) | |
| tree | 2a64648539f40b53bf3e9f8c3d33d0e31e4f0f65 | |
| parent | Support GITHUB_SHA for creating permalinks (diff) | |
Include project name in footer12.x-source-code-command
| -rw-r--r-- | pydis_core/exts/source.py | 8 |
1 files changed, 7 insertions, 1 deletions
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 |