if len(solution):
solution_str = "*`" + '`, `'.join(solution) + "`*"
+ meta_str = ''
+ if puzzle.get('type', 'plain') == 'meta':
+ meta_str = "*META* "
+
links = []
if url:
links.append("<{}|Puzzle>".format(url))
", ".join(rounds)
)
- puzzle_text = "{}{} <{}|{}> ({}){}{}".format(
+ puzzle_text = "{}{} {}<{}|{}> ({}){}{}".format(
status_emoji, solution_str,
+ meta_str,
channel_url(channel_id), name,
', '.join(links), rounds_str,
state_str
def puzzle_channel_name(puzzle):
"""Compute the channel name for a puzzle"""
- # Note: We don't use puzzle['hunt_id'] here because we're keeping
+ # Note: We don't use puzzle['puzzle_id'] here because we're keeping
# that as a persistent identifier in the database. Instead we
# create a new ID-like identifier from the current name.
channel_name = "{}-{}".format(