]> git.cworth.org Git - turbot/blobdiff - turbot/blocks.py
Add an edit button next to each puzzle
[turbot] / turbot / blocks.py
index 661cff37287d0fbee5a9fddb37220f7c8ef17630..cfef7f6a76ecf481224043d5a52b41565f46280b 100644 (file)
@@ -34,6 +34,14 @@ def button_block(label, name):
         "value": name
     }
 
+def accessory_block(main, accessory):
+    return {
+        **main,
+        "accessory": {
+            **accessory
+        }
+    }
+
 def input_block(label, name, placeholder, optional=False):
     return {
         "type": "input",