Skip to content

Commit

Permalink
Merge pull request #31 from 0xEmma/patch-1
Browse files Browse the repository at this point in the history
Remove no hints from other channels
  • Loading branch information
makelarisjr authored May 23, 2023
2 parents 98a6fac + 1a72b6f commit b12687e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cmds/core/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ def __init__(self, bot: Bot):

@slash_command(guild_ids=settings.guild_ids, description="A simple reply stating hints are not allowed.")
async def no_hints(
self, ctx: ApplicationContext,
channel: Option(GuildChannel, "The guild channel to send the message to.", required=False) = None
self, ctx: ApplicationContext
) -> Message:
"""A simple reply stating hints are not allowed."""
if not channel:
channel = ctx.channel
return await channel.send(
"No hints are allowed for the duration the event is going on. This is a competitive event with prizes. "
"Once the event is over you are more then welcome to share solutions/write-ups/etc and try them in the "
Expand Down

0 comments on commit b12687e

Please sign in to comment.