aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-31 11:57:29 +0300
committerGravatar ks129 <[email protected]>2020-05-31 11:57:29 +0300
commited8298cad287c2bc37566d2688b77dc64d62a7af (patch)
treeeff8f1834f9b76ae3880d3351146f5dc97ddc803
parentSource: Add thumbnail to source command bot repo embed (diff)
Source: Few text fixes, made help command detection better
-rw-r--r--bot/cogs/source.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/source.py b/bot/cogs/source.py
index 3f03f790c..32f8d5e08 100644
--- a/bot/cogs/source.py
+++ b/bot/cogs/source.py
@@ -16,7 +16,7 @@ class SourceConverter(Converter):
async def convert(self, ctx: Context, argument: str) -> SourceType:
"""Convert argument into source object."""
- if argument.lower() == "help":
+ if argument.lower().startswith("help"):
return ctx.bot.help_command
tags_cog = ctx.bot.get_cog("Tags")
@@ -49,7 +49,7 @@ class BotSource(Cog):
async def source_command(self, ctx: Context, *, source_item: SourceConverter = None) -> None:
"""Display information and a GitHub link to the source code of a command, tag, or cog."""
if not source_item:
- embed = Embed(title="Bot GitHub Repository")
+ embed = Embed(title="Bot's GitHub Repository")
embed.add_field(name="Repository", value=f"[Go to GitHub]({URLs.github_bot_repo})")
embed.set_thumbnail(url="https://avatars1.githubusercontent.com/u/9919")
await ctx.send(embed=embed)
@@ -93,7 +93,7 @@ class BotSource(Cog):
async def build_embed(self, link: str, source_object: SourceType, loc: str, first_line: Optional[int]) -> Embed:
"""Build embed based on source object."""
if isinstance(source_object, HelpCommand):
- title = "Help"
+ title = "Help Command"
description = source_object.__doc__.splitlines()[1]
elif isinstance(source_object, Command):
if source_object.cog_name == "Alias":