Skip to content

Commit

Permalink
Update about command for OpenModmail
Browse files Browse the repository at this point in the history
Removes patreon, sponsors, and installation guide fields.
Changes references to modmail-dev github page
Removes author discord link
  • Loading branch information
khakers committed Mar 25, 2024
1 parent c1fdd65 commit ee9fba8
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions cogs/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,13 @@ async def changelog(self, ctx, version: str.lower = ""):
@commands.command(aliases=["info"])
@checks.has_permissions(PermissionLevel.REGULAR)
@utils.trigger_typing
async def about(self, ctx):
async def about(self, ctx: commands.Context):
"""Shows information about this bot."""
embed = discord.Embed(color=self.bot.main_color, timestamp=discord.utils.utcnow())
embed.set_author(
name="Modmail - About",
name="OpenModmail - About",
icon_url=self.bot.user.display_avatar.url,
url="https://discord.gg/F34cRU8",
# url="https://discord.gg/F34cRU8",
)
embed.set_thumbnail(url=self.bot.user.display_avatar.url)

Expand All @@ -344,9 +344,9 @@ async def about(self, ctx):
embed.add_field(name="Python Version", value=f"`{python_version}`")
embed.add_field(name="discord.py Version", value=f"`{dpy_version}`")
embed.add_field(name="Bot Version", value=f"`{self.bot.version}`")
_c_url = "https://github.com/modmail-dev/modmail/graphs/contributors"
_c_url = "https://github.com/khakers/openmodmail/graphs/contributors"
_c = f"[and many other contributors]({_c_url})"
embed.add_field(name="Authors", value=f"`kyb3r`, `Taki`, `fourjr`, {_c}")
embed.add_field(name="Authors", value=f"`kyb3r`, `Taki`, `fourjr`, `khakers`, `raiden_sakura` {_c}")
embed.add_field(name="Hosting Method", value=self.bot.hosting_method.name)

changelog = await Changelog.from_url(self.bot)
Expand All @@ -360,27 +360,6 @@ async def about(self, ctx):
else:
footer = "You are up to date with the latest version."

embed.add_field(
name="Want Modmail in Your Server?",
value="Follow the installation guide on [GitHub](https://github.com/modmail-dev/modmail/) "
"and join our [Discord server](https://discord.gg/zmdYe3ZVHG)!",
inline=False,
)

embed.add_field(
name="Support the Developers",
value="This bot is completely free for everyone. We rely on kind individuals "
"like you to support us on [`Patreon`](https://patreon.com/kyber) (perks included) "
"to keep this bot free forever!",
inline=False,
)

embed.add_field(
name="Project Sponsors",
value=f"Checkout the people who supported Modmail with command `{self.bot.prefix}sponsors`!",
inline=False,
)

embed.set_footer(text=footer)
await ctx.send(embed=embed)

Expand Down

0 comments on commit ee9fba8

Please sign in to comment.