summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
29c36d3)
/new Which is the same as: /puzzle new
/edit Which is the same as: /puzzle edit
I don't know if this is cleaner or messier, but I can at least put it
out there as an option.
actions['multi_static_select'] = {"*": multi_static_select}
actions['multi_static_select'] = {"*": multi_static_select}
+def edit(turb, body, args):
+ """Implementation of the `/edit` command
+
+ To edit the puzzle for the current channel.
+
+ This is simply a shortcut for `/puzzle edit`.
+ """
+
+ return edit_puzzle_command(turb, body)
+
+commands["/edit"] = edit
+
+
def edit_puzzle_command(turb, body):
"""Implementation of the `/puzzle edit` command
def edit_puzzle_command(turb, body):
"""Implementation of the `/puzzle edit` command
commands["/puzzle"] = puzzle
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`.
+ """
+
+ return new_puzzle(turb, body)
+
+commands["/new"] = new
+
def new_puzzle(turb, body):
"""Implementation of the "/puzzle new" command
def new_puzzle(turb, body):
"""Implementation of the "/puzzle new" command