Skip to content

Commit

Permalink
Update info, remove profanity, fix help context
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Apr 17, 2024
1 parent b615d75 commit bf241e3
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions say/say.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def say(
if not channel:
channel = ctx.channel
if not text:
await ctx.send_help()
await ctx.send_help(ctx.command)
return

author = ctx.author
Expand All @@ -55,7 +55,6 @@ async def say(
)
else:
await author.send(("I am not allowed to send messages in ") + channel.mention)
# If this fails then fuck the command author
return

try:
Expand Down Expand Up @@ -176,18 +175,20 @@ async def sayinfo(self, ctx):
"""
Get informations about the cog.
"""
await ctx.send(
(
"Laggron's Dumb Cogs V3 - say\n\n"
"Version: {0.__version__}\n"
"Author: {0.__author__}\n"
"Github repository: https://github.com/retke/Laggrons-Dumb-Cogs/tree/v3\n"
"Discord server: https://discord.gg/GET4DVk\n"
"Documentation: http://laggrons-dumb-cogs.readthedocs.io/\n"
"Help translating the cog: https://crowdin.com/project/laggrons-dumb-cogs/\n\n"
"Support my work on Patreon: https://www.patreon.com/retke"
).format(self)
e = discord.Embed(
color=ctx.bot.main_color,
title="Laggron's Dumb Cogs - say",
description="Originally made for Red Discord bot, ported to Modmail by raidensakura.",
)
e.add_field(
name="Original Repository", value="https://github.com/retke/Laggrons-Dumb-Cogs/", inline=False
)
e.add_field(
name="Plugin Repository", value="https://github.com/raidensakura/modmail-plugins", inline=False
)
e.add_field(name="Version", value=f"{self.__version__}")
e.add_field(name="Author", value=f"{', '.join(self.__author__)}")
await ctx.send(embed=e)

async def cog_unload(self):
logger.debug("Unloading cog...")
Expand Down

0 comments on commit bf241e3

Please sign in to comment.