-• Make /solved report to the main hunt channel
-
• Make /solved clear the state string for a puzzle.
• Implement an /archive command to allow for easy archiving of a
turb.slack_client, channel_id,
"Puzzle mark solved by {}: `{}`".format(user_name, args))
+ # Also report the solution to the hunt channel
+ (hunt, _) = get_table_item(turb, "hunts", "hunt_id", puzzle['hunt_id'])
+ slack_send_message(
+ turb.slack_client, hunt['channel_id'],
+ "Puzzle '<{}|{}>' has been solved!".format(
+ puzzle['channel_url'],
+ puzzle['name'])
+ )
+
# And update the puzzle's description
set_channel_topic(turb, puzzle)