diff options
| author | 2025-11-09 23:59:12 +0000 | |
|---|---|---|
| committer | 2025-11-10 23:19:27 +0000 | |
| commit | 959ba9367bd7d1a0dda2f64afdc68c23ba9a273c (patch) | |
| tree | 2990c224d82fde5f5e34789774af16df0ac9baa7 /pydis_core/exts | |
| parent | Support GITHUB_SHA for creating permalinks (diff) | |
Include project name in footer
Diffstat (limited to 'pydis_core/exts')
| -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 e54fcc98..ded9c7aa 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 |