Live-verify the puppet DM path and expose the backend choice

This commit is contained in:
Fisto
2026-09-16 10:53:51 +02:00
parent 9113bafe28
commit b94031d816
6 changed files with 45 additions and 12 deletions
+4 -1
View File
@@ -802,8 +802,11 @@ export function startWebUi(deps: WebUiDeps): WebUiHandle {
const mode = req.body?.mode === "download" ? "download" : "links";
const guildId = req.body?.guildId ? String(req.body.guildId) : null;
const confirm = req.body?.confirm === true;
const requested = String(req.body?.backend ?? "auto");
const backend =
requested === "slopbot" || requested === "puppet" ? requested : "auto";
const scrape = await deps.media.startScrape({ channelId, guildId, mode, confirm });
const scrape = await deps.media.startScrape({ channelId, guildId, mode, confirm, backend });
deps.getPuppet()?.appendAction({
type: "media",
action: "scrape",