Skip to content

Commit

Permalink
chore: rm dup flag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
GangGreenTemperTatum committed Nov 16, 2024
1 parent a8b6aa9 commit df70f14
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions examples/crucible.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,6 @@ async def main(
print()
print("=" * 80 + "\n")

for msg in messages:
if isinstance(msg, rg.GeneratedMessage):
content = msg.message.content
potential_flags = [
word for word in content.split() if word.startswith("gAAAAA") and len(word) > 10 and " " not in word
]
if potential_flags:
logger.success(f"Found flag in attempt {attempts}: {potential_flags[0]}")
return

logger.warning(f"No flag found after {max_attempts} attempts, please try again")


Expand Down

0 comments on commit df70f14

Please sign in to comment.