Carl Worth [Sat, 8 Jan 2022 08:26:10 +0000 (00:26 -0800)]
Fix a type in a comment
Just had the word "the" where I meant to have "then".
Carl Worth [Sat, 8 Jan 2022 08:25:01 +0000 (00:25 -0800)]
Use empty list instead of empty tuple in a few places
I don't think the type actually mattered anywhere here, but it might have.
(Leave it to python and its annoying type unsafety to be unhelpful here.)
Carl Worth [Sat, 8 Jan 2022 02:55:32 +0000 (18:55 -0800)]
Convert the solution data structure back to a list, (but still avoid dupes.)
The put_item call was not happy receiving a set object. So, instead of using
one, we use a lits and just take care to not add any duplicates to the list.
Carl Worth [Sat, 8 Jan 2022 02:31:33 +0000 (18:31 -0800)]
Use a set instead of a list for a puzzle's solution
This allows for cleaner handling when two solvers submit the same
solution back-to-back. Previously the identical solution would appear
multiple times in the list of solutions which was obviously not
helpful.
Now, each solution will appear no more than once.
Carl Worth [Sat, 8 Jan 2022 01:26:59 +0000 (17:26 -0800)]
Fix puzzle edit form in the case of no existing rounds in the hunt yet
This was a corner case affecting only the first few puzzles or so, (before
any puzzles were associated with a round).
Carl Worth [Sat, 8 Jan 2022 00:36:14 +0000 (16:36 -0800)]
Remove the util code
This was getting in the way of deployment, (since it's not flake8-clean).
Instead of fixing it, just nuke it. We weren't certain we'd ever use it
anyway, (and it's now at least in git revision history if needed).
Carl Worth [Sat, 8 Jan 2022 00:34:32 +0000 (16:34 -0800)]
Move all Turbot-created sheets down one level (in google drive)
The new folder is named "turbot"
Carl Worth [Fri, 7 Jan 2022 03:28:42 +0000 (19:28 -0800)]
Add some utility code
None of this is really "part of" turbot, but is instead some
standalone code I've written from time to time either while testing
functionality or when live-tweaking something during hunt as follows:
sheets-test.py: Ensuring Google sheets API works as expected
blocks-test.py: Debugging some Slack blocks formatting
hunt-channel-topic-tweak.py: During MH 2021 it was useful (for
a reason I don't recall at the moment) to be able to manually
tweak the topic of some channels from a script and I whipped
these up at the moment.
It's not clear if any of this will be useful going forward, but just
in case I'm holding onto it for now. We may just want to delete this
code if we find we don't end up using it.
Carl Worth [Fri, 7 Jan 2022 03:27:14 +0000 (19:27 -0800)]
Ignore the .gsheets.env file if it exists
I've had this around for some utility code and don't want "git status"
saying anything about it.
Carl Worth [Fri, 7 Jan 2022 03:24:18 +0000 (19:24 -0800)]
Edit the help messages for "new" and "edit"
The old help messages were confusing. It wasn't always clear that
"[puzzle]" meant an optional argument of literally the word "puzzle"
rather than the name of a particular puzzle to edit.
Instead, we encourage people to use these commands without arguments
(whenever possible, such as "/edit" for hunt or puzzle and "/new" for
puzzle) and to use clear literal arguments when necessary (such as
"/new hunt" from any channel or "/edit hunt" from within a puzzle
channel).
Carl Worth [Fri, 7 Jan 2022 00:55:47 +0000 (16:55 -0800)]
Add a README file for turbot
If nothing else, this will be helpful to remind me what the email
addresses are that I've been using for AWS and Google Drive accounts,
and also what the URL is for editing the Turbot app.
Carl Worth [Mon, 15 Nov 2021 23:54:31 +0000 (15:54 -0800)]
Remove some recently-added debugging print statements
After determining the actual problem.
Carl Worth [Mon, 15 Nov 2021 23:52:22 +0000 (15:52 -0800)]
Fix "New Hunt" button to actually call new_hunt_button function
Was previously calling new_hunt function directly which cannot work.
Carl Worth [Mon, 15 Nov 2021 23:27:32 +0000 (15:27 -0800)]
Add some debugging of the turbot home app
I'm getting some "channel_not_found" errors that I don't understand,
because I don't think I have any active hunts currently.
Carl Worth [Mon, 15 Nov 2021 22:20:36 +0000 (14:20 -0800)]
Add a couple of more TODO items
These were left over from the Hunt in January 2021.
Carl Worth [Sat, 16 Jan 2021 16:11:23 +0000 (08:11 -0800)]
Fix missing case of nested array
Hoping we're there now with this fix?
Carl Worth [Sat, 16 Jan 2021 16:03:10 +0000 (08:03 -0800)]
Restrict list of blocks to 100 items
Since I've now seen Slack complaining if lists are greater than 100 items.
Carl Worth [Sat, 16 Jan 2021 15:47:45 +0000 (07:47 -0800)]
Live fix for apparently overflowing the Slack message limit with hunt details
Condense the Turbot Home view to only link to hunts, not give all the
details.
Change hunt_blocks() function to return an array of array of blocks,
(broken up at the level of a round). Callers now generate one post for
each element in the outer array. Hopefully this gives us a little
breathing room for now.
Carl Worth [Sat, 16 Jan 2021 15:44:27 +0000 (07:44 -0800)]
Add some recent TODO items
These obviously aren't going to happen or this year, but we can
consider them for future years.
Carl Worth [Wed, 13 Jan 2021 04:15:46 +0000 (20:15 -0800)]
When creating a new puzzle, set default rounds based on current puzzle
This happens when running the puzzle creation command, (/new,
/puzzle new, or /new puzzle), from an existing channel.
This should hopefully help people avoid forgetting to set the rounds
for a new puzzle.
Carl Worth [Wed, 13 Jan 2021 04:03:36 +0000 (20:03 -0800)]
Switch from using append() to update() for inserting into a spreadsheet
The append() method was the entirely wrong thing: It puts data in as
new rows below existing data. The update() method does what we want,
(sets data at a specific range).
Carl Worth [Tue, 12 Jan 2021 02:06:10 +0000 (18:06 -0800)]
Use a double dash separator for the m in the channel name of metapuzzles
The double dash is what will make the meta puzzles sort before all
non-metapuzzled.
Carl Worth [Tue, 12 Jan 2021 01:56:47 +0000 (17:56 -0800)]
Use consistent channel naming at puzzle creation time
We've had a bug for some time where the puzzle editing code would
construct a name for the puzzle channel based on hunt, and round, and
puzzle type, and puzzle_id but the puzzle creation code was only using
hunt and puzzle_id.
In this commit, we fix the puzzle creation code to use the same
puzzle_channel_name function so that channel names are created
consistently.
This commit also adds a check to reject a puzzle if it has the same
puzzle_id as an existing puzzle.
Carl Worth [Tue, 12 Jan 2021 01:53:36 +0000 (17:53 -0800)]
Add find_puzzle_for_puzzle_id
This exists so that the puzzle-creation code can ensure that it's not
creating a puzzle with the same puzzle_id as an existing
puzzle. Previously, Turbot was just relying on Slack to guarantee
uniqueness, (which worked when channel names were just made from
hunt_id and puzzle_id).
But more recently, the channel names have round names in them as
well. This set up a possible collision where two puzzle with the same
puzzle_id could be created but with different channel names, (if the
two puzzles were placed in different rounds). To be able to fix this
bug we need this query to be able to find a puzzle by means of using
the puzzle_id.
This does require a new index on the database, so that's here too,
(and we're nuking our database to be able to roll this out).
Carl Worth [Tue, 12 Jan 2021 01:52:40 +0000 (17:52 -0800)]
Fix comment string for find_puzzle_for_sort_key
The documentation here was stale and still referring to puzzle_id even
though this function is actually using sort_key, (which is similar but
is also slightly different).
Carl Worth [Tue, 12 Jan 2021 00:50:29 +0000 (16:50 -0800)]
Tighten up the welcome messages for a new hunt and a new puzzle
And point to `/help` in both cases for more details.
Carl Worth [Mon, 11 Jan 2021 22:25:06 +0000 (14:25 -0800)]
Expand list of pop-culture items to include video games
Perhaps bringing this list more up-to-date, (and also quite compatible
with the proclivities of ✈✈✈ Galactic Trendsetters ✈✈✈ who are writing
this year).
Carl Worth [Mon, 11 Jan 2021 22:24:27 +0000 (14:24 -0800)]
Drop names of specific people from the have-you-tried list
Replacing this list with "relevant team experts".
Carl Worth [Mon, 11 Jan 2021 21:56:20 +0000 (13:56 -0800)]
Fix `/help me` to not give a dispatch_failed error in a private channel
Since Turbot can't send a message to a private channel, instead we
just reply as an ephemeral message to the user.
Carl Worth [Mon, 11 Jan 2021 21:09:52 +0000 (13:09 -0800)]
Make "/help me" self-documenting
So that when people see others doing this, they will know how to do it too.
Carl Worth [Mon, 11 Jan 2021 20:53:34 +0000 (12:53 -0800)]
Implement a new "/help me" command that suggests something to try
Thanks to Acme for the original "Have you tried" list as obtained from:
http://web.mit.edu/puzzle/www/resources.html
as:
http://web.mit.edu/puzzle/www/resources/haveyoutried.pdf
Carl Worth [Mon, 11 Jan 2021 20:21:29 +0000 (12:21 -0800)]
Add an initial implementation of /help
So that Turbot can be self-documenting.
Carl Worth [Mon, 11 Jan 2021 18:09:38 +0000 (10:09 -0800)]
Update hunt welcome message to refer to `/puzzle new`
Previously it was pointing the users at `/puzzle` which is no longer
the correct command to use.
Carl Worth [Mon, 11 Jan 2021 17:58:12 +0000 (09:58 -0800)]
Fix call to find_hunt_for_hunt_id
It takes two parameters, not one, (was missing "turb" argument).
This should fix the edit_hunt button (the pencil) which was erroring
out while this bug was present.
Carl Worth [Mon, 11 Jan 2021 17:54:57 +0000 (09:54 -0800)]
Drop use of response_url in button handlers
Some buttons appear in a context, (like the app's "Home" view), where
there is no response_url, (we can't generate a message there). So we
can't rely on this. And we don't need to anyway, we can use the string
in the reteurn value to get an error message out to the user.
This commit should fix a bunch of broken puzzle edits button in the
Turbot "home" view.
Carl Worth [Mon, 11 Jan 2021 17:01:08 +0000 (09:01 -0800)]
Update TODO now that "/hunt edit" has been added
This closes out the last item we had as a required change prior to
Mystery Hunt 2021.
Carl Worth [Mon, 11 Jan 2021 16:25:20 +0000 (08:25 -0800)]
Make /edit command smart to auto-edit either puzzle or hunt
Depending on which kind of channel it is run in. It's still possible to
explicitly run `/edit puzzle` or `/edit hunt` instead.
Carl Worth [Mon, 11 Jan 2021 16:07:03 +0000 (08:07 -0800)]
Add a pencil-shaped "edit hunt" button when displaying a hunt
So that editing a hunt can be just as convenient as editing a puzzle.
Carl Worth [Mon, 11 Jan 2021 16:03:30 +0000 (08:03 -0800)]
Wire up "/edit hunt" to be the same as "/hunt edit"
Just as we did for "/edit" and "/edit puzzle" before.
Carl Worth [Mon, 11 Jan 2021 16:00:40 +0000 (08:00 -0800)]
Add a "/hunt edit" command
We expect this to be useful for a situation like Mystery Hunt where we
create the hunt and its channel in advance, invite all the users to
it, and then only later do we learn what the URL of the hunt actually
is.
Carl Worth [Sun, 10 Jan 2021 23:41:57 +0000 (15:41 -0800)]
Add "/new hunt" as a new sub-command of "/new"
This means we now have both "/hunt new" as well as "/new hunt" that
both do the same things. I'm not sure we'll want to keep both around
long-term, but they are both here now so that we can experiment and
see which feels more natural.
Carl Worth [Sun, 10 Jan 2021 21:33:17 +0000 (13:33 -0800)]
Update TOOD with two recently-completed items
There is a new "/hunt new" command now and puzzle sheets are now created
in a folder named after the hunt.
Carl Worth [Sun, 10 Jan 2021 21:24:25 +0000 (13:24 -0800)]
Create puzzle sheets in the hunt folder
This will be much nicer to keep our content organized within Google
drive. There will be one folder for each hunt rather than all the
various hunts' puzzles all mixed together at the root level.
Carl Worth [Sun, 10 Jan 2021 17:52:27 +0000 (09:52 -0800)]
Use the Google drive API to create a hunt's sheet within a folder
When a hunt is created, we create a folder in Google drive named
after the hunt_id and the create the hunt's sheet in that folder.
In future commits, we'll change the puzzle sheets to also be created
in this hunt's folder. This way, with all resources in one folder,
that folder can be shared out to members of the hunt, (this could
be used as an alternate access to hunt resources if Slack is not
available for any reason).
Carl Worth [Sun, 10 Jan 2021 17:51:15 +0000 (09:51 -0800)]
Rename identifier from item to hunt
The dynamodb API uses the generic term "item", but our code is more
clear with the more distinctive term "hunt" for the identifier here.
This commit has no functional change.
Carl Worth [Sun, 10 Jan 2021 16:36:05 +0000 (08:36 -0800)]
Implement "/hunt new" as a way to make a new hunt
This is more convenient than seeking out the Turbot app's Home tab.
Carl Worth [Sun, 10 Jan 2021 16:35:05 +0000 (08:35 -0800)]
Remove a line of dead code
A second return statement after an unconditional return statement
obviously cannot do anything.
Carl Worth [Sat, 9 Jan 2021 22:39:39 +0000 (14:39 -0800)]
Fix to work with old puzzles that don't have a type attribute
Without this, commands like /state and /puzzle on old puzzle just die.
Carl Worth [Sat, 9 Jan 2021 22:37:10 +0000 (14:37 -0800)]
Allow tag values to have numbers
There was unanimous consent that this could be useful, and it's an
easy change.
Carl Worth [Sat, 9 Jan 2021 22:36:18 +0000 (14:36 -0800)]
Add 4 new TODO items
Just the last few fixes we've identified we want to have in place
before the hunt next week.
Carl Worth [Sat, 9 Jan 2021 16:06:31 +0000 (08:06 -0800)]
Put the puzzle's name into the first tab of the sheet
Just to make it that much easier to tell apart multiple sheet windows
that a user might have to juggle.
Carl Worth [Sat, 9 Jan 2021 16:03:15 +0000 (08:03 -0800)]
Update the TODO list for a couple of recently-completed items
We got rid of that "Copy of" text in the sheet tabs, and we also put
the round name into the Slack channel.
Carl Worth [Sat, 9 Jan 2021 15:52:41 +0000 (07:52 -0800)]
Add both round and "-m" (for META), if appropriate, into channel name
For better grouping of related puzzles in the channel list
Carl Worth [Sat, 9 Jan 2021 15:45:37 +0000 (07:45 -0800)]
Use best-practice <@user_id> to mention a user in Slack
This way Slack expands this as a link to the user's full name.
Carl Worth [Sat, 9 Jan 2021 15:31:13 +0000 (07:31 -0800)]
Collapse link text inserted into sheets
Since we have functional links here we don't need to include the full
URL as part of the link text.
Carl Worth [Sat, 9 Jan 2021 15:19:21 +0000 (07:19 -0800)]
Rewrite all of sheets.py to look a little more like turbot code
The only actual intended behavioral change here is that the puzzle
sheet's now nuke the blank first sheet, (and instead have only sheets
copied over from the template).
Carl Worth [Sat, 9 Jan 2021 14:29:42 +0000 (06:29 -0800)]
Rename each sheet we copy from the template
To get rid of the silly "Copy of" text that we don't need.
Carl Worth [Sat, 9 Jan 2021 13:47:33 +0000 (05:47 -0800)]
Fix sheet creation to copy all sheets from our template
Nathan put a lot of word into this template sheet, so it was a shame
the sheets weren't all coming over. It turned out the only reason that
was the case is that the code has a hard-coded list of names of sheets
to copy, (and that, only because I haven't yet figured out the API for
enumerating sheets).
For now, just update the hardcoded list to match what's in the current
template.
Carl Worth [Sat, 9 Jan 2021 13:42:59 +0000 (05:42 -0800)]
Update TODO for recent addition of /tag command
This _almost_ completed the feature as intended. In fact, it went
further in one way in that it's already storing the tags in a field
that is separate from the state string. But it's falling short in that
the edit interface is not currently showing the tags at all.
Carl Worth [Sat, 9 Jan 2021 13:39:30 +0000 (05:39 -0800)]
Add hint to expand search terms if implicitly filtered
I keep accidentally missing some search results when testing because
I'm searching for a tag that only exists on a solved puzzle so something
like:
/hunt cryptic
is not finding the solved puzzle with the CRYTPIC tag due to the
implicit filtering to only unsolved puzzles.
I still want that implicit filtering, but maybe this nudge will be
helpful in cases like this.
Carl Worth [Sat, 9 Jan 2021 13:21:43 +0000 (05:21 -0800)]
Extend puzzle search to include type and tags
The matching on puzzle type means you can now do:
/hunt meta
or:
/hunt plain
to see all meta or non-meta puzzles.
And the matching on tags should be obvious.
Carl Worth [Sat, 9 Jan 2021 13:16:20 +0000 (05:16 -0800)]
Use a deep copy when comparing a puzzle to detect state modifications
Since the recent tags is an array, we need a deep copy of the puzzle dict
in order to be able to reliably compare the puzzle prior to the copy with
the one after the copy where a tag has been added or removed.
With this fix, adding or removing a tag now reliably updates the channel
description.
Carl Worth [Sat, 9 Jan 2021 13:04:28 +0000 (05:04 -0800)]
Add a /tag command to add or remove tags from puzzle
And put the tag values everywhere we have the state string already.
Carl Worth [Sat, 9 Jan 2021 12:27:35 +0000 (04:27 -0800)]
Add two new shortcut commands:
/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.
Carl Worth [Sat, 9 Jan 2021 11:59:02 +0000 (03:59 -0800)]
For /puzzle on meta puzzles print all titles/answers of feeder puzzles
Where feeder puzzles are specifically defined as puzzle belonging to the
same round.
Carl Worth [Sat, 9 Jan 2021 11:27:27 +0000 (03:27 -0800)]
Put solution after puzzle name in /hunt reports
The concept here is to keep the puzzle names aligned to make it easier
to find a puzzle of interest in the sorted list.
Carl Worth [Sat, 9 Jan 2021 11:22:25 +0000 (03:22 -0800)]
Add a divider between rounds in the /hunt output
Just to make it a little easier to see the grouping of rounds.
Carl Worth [Sat, 9 Jan 2021 11:20:34 +0000 (03:20 -0800)]
TODO: Update for two recently-completed meta items
The punch list is getting short now...
Carl Worth [Sat, 9 Jan 2021 10:57:07 +0000 (02:57 -0800)]
Sort all meta puzzles before all non-meta puzzle in puzzle lists
This is in the output of /hunt, /round, and the Turbot home view.
Carl Worth [Sat, 9 Jan 2021 10:47:57 +0000 (02:47 -0800)]
new_puzzle_submission: Create a puzzle dict before shoving it into the DB
This will be handy for calling some puzzle.py functions that expect a dict.
Carl Worth [Sat, 9 Jan 2021 10:36:20 +0000 (02:36 -0800)]
Add a "meta" checkbox when creating/editing a puzzle
And display all meta puzzles with a bold "META" prefix.
Carl Worth [Sat, 9 Jan 2021 10:35:23 +0000 (02:35 -0800)]
Fix a typo in a comment
This comment was supposed to refer to puzzle_id, not hunt_id, which
made it confusing for me until I fixed it as in this commit.
Carl Worth [Sat, 9 Jan 2021 09:19:57 +0000 (01:19 -0800)]
Implement a /round command
This is much like the /hunt command with searching, etc. but with two
differences:
1. It is limited to display puzzles in the same round(s) as the
current puzzle
2. It defaults to display all puzzles rather than unsolved puzzles
like /hunt does
Carl Worth [Sat, 9 Jan 2021 08:39:57 +0000 (00:39 -0800)]
Implement a `/puzzle edit` command
As a simple shortcut rather than making the user type `/puzzle` and
then click the pencil icon.
Carl Worth [Sat, 9 Jan 2021 08:32:18 +0000 (00:32 -0800)]
Report change in a puzzle's solved status to the main hunt channel
We were already doing this from the /solved command but now we do it
for puzzle edits as well.
Carl Worth [Sat, 9 Jan 2021 08:26:24 +0000 (00:26 -0800)]
Put a message into the channel when a user edits a puzzle
So that other members of the puzzle are informed that something has changed.
Carl Worth [Sat, 9 Jan 2021 08:00:22 +0000 (00:00 -0800)]
Add display of round(s) in /puzzle output
Making the output more complete (while still remaining quite compact).
Carl Worth [Sat, 9 Jan 2021 07:51:32 +0000 (23:51 -0800)]
Add new /puzzle command which simply prints the current puzzle
This is the same format one could get from the /hunt command, but
limited to the current puzzle. This is a very convenient way to see
all the puzzle fields and to get access to the pencil button to edit
the current puzzle.
Carl Worth [Sat, 9 Jan 2021 07:36:32 +0000 (23:36 -0800)]
Rename puzzle creation command from "/puzzle" to "/puzzle new"
This is to create space for other commands later, (such as "/puzzle edit"
and a new status-reporting "/puzzle" command).
Carl Worth [Sat, 9 Jan 2021 07:04:55 +0000 (23:04 -0800)]
Don't re-set channel and sheet name or channel topic to the same value as before
The puzzle_update_channel_and_sheet function is modified here to
accept an old_puzzle argument in addition to the puzzle argument. By
using this it can decide whether there's any change in the sheet or
channel data before setting it.
This optimization avoids Slack reporting things like:
Turbot renamed the channel from "hunt-puzzle" to "hunt-puzzle"
Which is obviously just noise.
Carl Worth [Sat, 9 Jan 2021 06:38:26 +0000 (22:38 -0800)]
Unify code to rename channel, set channel description, and rename sheet
With this code, all of those changes are made consistently regardless of
whether the change happens from /state, /solved, or a puzzle edit (which
could set status to either "solved" or "unsolved").
Carl Worth [Sat, 9 Jan 2021 06:19:29 +0000 (22:19 -0800)]
Reject puzzle edit if "solved" and "solution" are inconsistent
There's an argument here that we really shouldn't be giving the user
two different fields if we're forcing them to be edited together, but
that's what we have right now.
Carl Worth [Sat, 9 Jan 2021 06:18:26 +0000 (22:18 -0800)]
Update TODO file now that puzzle edit dialog has been edited
And just as the TODO file predicted, right now it's only possible to
get at this functionality through the pencil icon.
Carl Worth [Sat, 9 Jan 2021 02:44:29 +0000 (18:44 -0800)]
Implement update of puzzle when edit_puzzle dialog is submitted
Processing all user input and updating the database with the changes.
This isn't _quite_ updating everything in the channel and the sheet
that should be changed. To do that we simply need to refactor the code
that's currently doing that in various places to do it all in one
place.
Carl Worth [Sat, 9 Jan 2021 01:23:32 +0000 (17:23 -0800)]
Implement a dialog box to edit a puzzle
This is connected to the "pencil" buttons that were recently added to
the /hunt output as well as the Turbot home view.
So far, this brings up an editable dialog with the puzzle state but
doesn't actually do anything with any of the edits made when the user
saves the dialog.
Carl Worth [Fri, 8 Jan 2021 20:37:40 +0000 (12:37 -0800)]
Modify multi_select_block to use accessory_block, section_block, and text_block
Where this content was previously open-coded and redundant.
The commit removes more lines of code than it adds.
Carl Worth [Fri, 8 Jan 2021 01:51:22 +0000 (17:51 -0800)]
Revamp the TODO list
The primary thing here is a sorted list of everything we want to
complete before a feature freeze, (which we're doing one weekend
before MH 2021 and will be followed by some test hunt over the weekend
both to flush out bugs and to get more of the team comfortable with
Turbot).
Carl Worth [Thu, 7 Jan 2021 17:05:34 +0000 (09:05 -0800)]
Wire up a function to handle the edit_puzzle button
It doesn't actually _do_ anything yet, but should at least prevent the
warning sign which was appearing before.
And this should let us see if the action_id field is a good way of
plumbing the hunt_id and puzzle_id through to the handler for the
press of the edit_puzzle button.
Carl Worth [Thu, 7 Jan 2021 04:42:21 +0000 (20:42 -0800)]
Add an edit button next to each puzzle
This will appear in both the Turbot home screen as well as in the
output from the /hunt command.
Carl Worth [Wed, 6 Jan 2021 16:54:56 +0000 (08:54 -0800)]
Fix indentation
To keep the flake8 check passing.
justin melvin [Wed, 6 Jan 2021 05:18:17 +0000 (21:18 -0800)]
Put -SOLVED as a suffix on sheet names and not a prefix to preserve
alphabetical ordering.
Carl Worth [Tue, 5 Jan 2021 22:25:41 +0000 (14:25 -0800)]
Modify a sheet-related TODO item after clarifying it with Nathan
This is regarding making a hunt-specific folder for sheets to live in.
Also, while thinking about this, add another item about possible
changing the way sheets are renamed.
Carl Worth [Tue, 5 Jan 2021 18:57:23 +0000 (10:57 -0800)]
Update TODO now that /hunt accepts a search term
Given the way the original TODO item was written, (as adding support
to both /home and to the Turbot home screen), this recent feature
addition doesn't delete an entire item from the TODO list, but it does
deserve to.
Carl Worth [Tue, 5 Jan 2021 18:49:23 +0000 (10:49 -0800)]
Fix error with missing search terems
Some recent change made a command like "/hunt solved" result in an error.
This commit fixes that.
Carl Worth [Tue, 5 Jan 2021 18:43:44 +0000 (10:43 -0800)]
Use Slack back-tick quoting for search terms
This is cleaner both for preventing misinterpreting asterisks and also
more clear than re-inserting quotation marks for search terms that
include spaces.
Carl Worth [Tue, 5 Jan 2021 18:39:49 +0000 (10:39 -0800)]
Tweak bolding of hunt lead-in line from search results
Using bold just for the puzzle status word. (This is an attempt to
avoid Slack seeing a '*' in a regular expression of a search term and
think that it means to make something bold.)
Carl Worth [Tue, 5 Jan 2021 18:34:26 +0000 (10:34 -0800)]
Add state string to list of puzzle attributes matched in searching
This is a really important one so that people can use state strings
for things like "logic" and others who want to solve a logic puzzle
can find them.
Carl Worth [Tue, 5 Jan 2021 16:31:34 +0000 (08:31 -0800)]
Add search terms to the /hunt command
Now, `/hunt <search-term>` can be used to list puzzles matching
<search-term>. As before, it will display only unsolved puzzles by
default, but `/hunt all <search-term>` or `/hunt solved <search-term>`
can be used to display other puzzles as well.
Carl Worth [Tue, 5 Jan 2021 04:44:28 +0000 (20:44 -0800)]
Drop two items from the TODO list (which we just completed)
A commit just a couple back in the series added these features.
Carl Worth [Tue, 5 Jan 2021 04:43:15 +0000 (20:43 -0800)]
Correct typo in hunt description verbiage
Thanks to Ken for pointing out this misspelling.