Skip to content

Implement Recover command

Jose V. Trigueros requested to merge recover-command into master

Add /recover command to make it simpler to retrieve lost recordings due to errors in the backend. This attempts to find thy recording by:

  • Checking the database for an entry, if it exists return it
  • Check for the mp3, re-upload then return it
  • Check for queue file, convert to mp3 then upload it then return it

For now, only I can run this command but I'm trying out Modal interactions to see if there's any interest in this. I think this is gonna be the first pay-walled command.

Closes #62 (closed)


UPDATE

Initially, I thought, I could let the user pass in whatever Session ID they wanted, but as is, there's no validation. They could provide any path to the server and if it finds it, the it'll get returned. This is no good.

The Session ID provided has to exist in the database, if not, the recovery process will fail.


UPDATE 2

When this command is exposed to the public, the SQL query must be limited to the Guild of the user that's calling this.

Edited by Jose V. Trigueros

Merge request reports