From: Carl Worth <cworth@cworth.org>
Date: Sat, 8 Jan 2022 09:01:31 +0000 (-0800)
Subject: Don't put the puzzle name into the channel topic
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=13323b025f64765f40e63712981cc4c2ffff0394;p=turbot

Don't put the puzzle name into the channel topic

Since hunt writers do various things to torture us, (see Infinite
Corridor), and since the channel topic has a small limit, don't put
the puzzle title into the topic. Otherwise, a long puzzle title could
force the important links to not appear at all in the topic.
---

diff --git a/turbot/puzzle.py b/turbot/puzzle.py
index caf6ced..a6d3ffd 100644
--- a/turbot/puzzle.py
+++ b/turbot/puzzle.py
@@ -249,8 +249,6 @@ def puzzle_channel_topic(puzzle):
     if puzzle['status'] == 'solved':
         topic += "SOLVED: `{}` ".format('`, `'.join(puzzle['solution']))
 
-    topic += puzzle['name']
-
     links = []
 
     url = puzzle.get('url', None)
@@ -262,7 +260,7 @@ def puzzle_channel_topic(puzzle):
         links.append("<{}|Sheet>".format(sheet_url))
 
     if len(links):
-        topic += "({})".format(', '.join(links))
+        topic += "({}) ".format(', '.join(links))
 
     tags = puzzle.get('tags', [])
     if tags: