Skip to content

Commit

Permalink
Update source command output
Browse files Browse the repository at this point in the history
  • Loading branch information
SylteA committed Dec 1, 2023
1 parent a2b2a33 commit 57c3788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/extensions/github/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ async def source(
title = f"# Source code for command: [/{command.qualified_name}](<{self.get_github_url(callback)}>)"
response = f"{title}\n```py\n{first_page}"

if len(source) > max_page_size:
response += "\n... # Result was truncated, view github for full source."

response += "\n```"

if len(source) > max_page_size:
response += "\n### Result was truncated, view github for full source."

return await interaction.response.send_message(response)

def get_github_url(self, callback: types.FunctionType) -> str:
Expand Down

0 comments on commit 57c3788

Please sign in to comment.