Skip to content

Commit

Permalink
change challenge already solved message
Browse files Browse the repository at this point in the history
this is in case someone tries to use /chal solve when the channel was created improperly
  • Loading branch information
user32121 committed Apr 28, 2024
1 parent fdcde7d commit 58f5f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/chal/chal.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def solve(self, ctx: SlashContext, flag: str) -> None:
return
post = typing.cast(interactions.GuildForumPost, ctx.channel)
if (not any(tag.name == "unsolved" for tag in post.applied_tags)):
await ctx.send(":x: Challenge has already been marked as solved.")
await ctx.send(":x: Challenge does not have unsolved tag.")
return

tags = [tag for tag in post.applied_tags if "unsolved" not in tag.name]
Expand Down

0 comments on commit 58f5f25

Please sign in to comment.