]> git.cworth.org Git - turbot/blobdiff - turbot/interaction.py
Rename sheets with 'SOLVED - ' prefix when /solved
[turbot] / turbot / interaction.py
index ab35a395bbdc6fe1020b3d84611865a6bf6db69b..5f8af0267ca07e6ac103132748c7682682d88188 100644 (file)
@@ -444,6 +444,9 @@ def solved(turb, body, args):
     # And update the puzzle's description
     set_channel_topic(turb, puzzle)
 
+    # And rename the sheet to prefix with SOLVED - 
+    turb.sheets.renameSheet(turb, puzzle['sheet_url'], 'SOLVED - ' + puzzle['name'])
+
     return lambda_ok
 
 commands["/solved"] = solved