X-Git-Url: https://git.cworth.org/git?p=turbot;a=blobdiff_plain;f=turbot%2Finteraction.py;h=05bbbb88d3c09f5eade01318604df40d330484e1;hp=34aa31305427661b83825ec8849b8a8859507b8e;hb=1ef1c6f234ba7fb1f88900a664369efb1fc61efb;hpb=59f80efe50f26c1f2e288cc85be2b24a9590a930 diff --git a/turbot/interaction.py b/turbot/interaction.py index 34aa313..05bbbb8 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -86,11 +86,15 @@ def edit(turb, body, args): """Implementation of the `/edit` command - To edit the puzzle for the current channel. + This can be used as `/edit hunt` or `/edit puzzle`, (and if issued as + just `/edit` will default to editing the current puzzle. - This is simply a shortcut for `/puzzle edit`. + These are simply shortcuts for `/hunt edit` and `/puzzle edit`. """ + if args == "hunt": + return edit_hunt_command(turb, body) + return edit_puzzle_command(turb, body) commands["/edit"] = edit