]> git.cworth.org Git - turbot/blobdiff - turbot/interaction.py
Add "/new hunt" as a new sub-command of "/new"
[turbot] / turbot / interaction.py
index c1064bfa22cfb2d6e4341163480e5ea1d3edc0b4..77a13ee17de4458cd2b59f3d6462ee08cb9d9488 100644 (file)
@@ -733,11 +733,20 @@ commands["/puzzle"] = puzzle
 def new(turb, body, args):
     """Implementation of the `/new` command
 
-    To create a new puzzle.
-
-    This is simply a shortcut for `/puzzle new`.
+    This can be used to create a new hunt ("/new hunt") or a new
+    puzzle ("/new puzzle" or simply "/new"). So puzzle creation is the
+    default behavior (as it is much more common).
+
+    This operations are identical to the existing "/hunt new" and
+    "/puzzle new". I don't know that that redundancy is actually
+    helpful in the interface. But at least having both allows us to
+    experiment and decide which is more natural and should be kept
+    around long-term.
     """
 
+    if args == 'hunt':
+        return new_hunt_command(turb, body)
+
     return new_puzzle(turb, body)
 
 commands["/new"] = new