-
Notifications
You must be signed in to change notification settings - Fork 14
!close / !clear safety switch #4
Comments
|
imo this should be solved simply by cases never being deleted from the Web interface when we have that and the API up and running. |
The web API already doesn't support deletions. But upon clearing cases the (sopel) bot removes the case and text lines associated with it from it's memory. As such future command do no longer work on it and vital information is lost. |
Cases should be in one of three categories/states: Open, Inactive, or Closed. I believe it's modelled that way in the Web API already. Closed cases should be removed from the bot's memory, but there should be a command to list (recent) closed cases and move them to another state. |
Some of the work in my work/dragons branch means that -- as a side effect -- we can have multiple 'boards' which may or may not be fully connected to the API. If we can't search for recently closed cases in the API (and we'd really need a date closed for that to work well), the bot can at least keep a local history of recently closed cases by shoving them off onto a separate board. As for the command, we already have |
since @xlexi is adding the capability to the /rescues endpoint i will make it possible to reopen recently closed rescues. propably !closed to grab closed rescues and !reopen to reopen them. |
You really don't want to grab all closed rescues, as that will give you literally EVERY case in the past. Limit it by time (The 10 minutes to an hour or so should be fine) |
I wasn't gonna do that. I'll use the limit= parameter to limit it to the 2 latest closed cases. Maybe even add a parameter for it. |
This sounds like it should be default. The new bot already requires the username to be entered (since the IDs from the web API are just stupid) Perhaps it could go something like this:
edit: this 5 digit code would of course be randomized per case.
The text was updated successfully, but these errors were encountered: