]> git.cworth.org Git - turbot/commit
Implement a new `/puzzle` slash command to create a puzzle
authorCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2020 23:12:42 +0000 (16:12 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 22 Oct 2020 06:50:12 +0000 (23:50 -0700)
commit41931beb0de72a0669600e92dfe4d00b2e596dbf
treeb5ad6ca48411320153f41554df35e9dea7d6f5c0
parent3cb02ee6f355f536960c8059f8f91c73fe20703f
Implement a new `/puzzle` slash command to create a puzzle

This command doesn't (yet) accept any arguments. Instead, it pops up a
modal dialog to prompt for the puzzle name, ID, and URL.

The command also only works from a top-level hunt channel.

Some things that would be nice improvements here:

  * Auto-fill the puzzle ID based on the puzzle name without
    punctuation and spaces replaced with underscores.

  * Allow the command to work from the channel of any puzzle in the
    hunt

  * Fix the bug that the modal dialog reports an error even when
    things work correctly, (the problem is that the lambda is taking
    more than the maximum 3 seconds that Slack is willing to wait for
    a response).
requirements.in
turbot/interaction.py
turbot/slack.py
turbot_lambda/turbot_lambda.py