Skip to content

Commit d2bb444

Browse files
committed
Include project name in footer
1 parent 2df61f1 commit d2bb444

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pydis_core/exts/source.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ async def _build_embed(self, source_object: object, source_type: _SourceType) ->
196196
embed = Embed(title=title, description=description)
197197
embed.add_field(name="Source Code", value=f"[Go to GitHub]({url})")
198198
line_text = f":{first_line}" if first_line else ""
199-
embed.set_footer(text=f"{location}{line_text}", icon_url=GITHUB_AVATAR)
199+
200+
if source_type == _SourceType.core_cog or source_type == _SourceType.core_command:
201+
project_name = "pydis_core"
202+
else:
203+
project_name = self.bot.user.name
204+
205+
embed.set_footer(text=f"{project_name} \N{BLACK CIRCLE} {location}{line_text}", icon_url=GITHUB_AVATAR)
200206

201207
return embed

0 commit comments

Comments
 (0)