]> git.cworth.org Git - turbot/commit
Combine actions.py and commands.py into interaction.py
authorCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2020 23:00:20 +0000 (16:00 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2020 23:00:20 +0000 (16:00 -0700)
commit3cb02ee6f355f536960c8059f8f91c73fe20703f
tree07692db7ac1d4b792036f5efca547279dc597321
parentdd449afa51bfba220cc82df2f36dce8934287647
Combine actions.py and commands.py into interaction.py

We're about to create a new slash command that fires up a modal, and
the response to that modal will be an action. So we want the
implementation of that slash command (which creates the view for the
modal) to be in the same file as the handler for the action.

So we combine these together for now.

If this file become unwieldy later, we can re-separate things based on
functional groups, (interactions related to hunts, puzzles, word-play
utilities, etc.), but always keeping the view creators and the
view-submission handlers together for any given view.
turbot/actions.py [deleted file]
turbot/commands.py [deleted file]
turbot/interaction.py [new file with mode: 0644]
turbot_lambda/turbot_lambda.py