Skip to content

Add resilient DuckDuckGo result fallback for ask - #132

Merged
variablenix merged 1 commit into
mainfrom
feat/ask-web-result-fallback
Aug 16, 2026
Merged

Add resilient DuckDuckGo result fallback for ask#132
variablenix merged 1 commit into
mainfrom
feat/ask-web-result-fallback

Conversation

@variablenix

Copy link
Copy Markdown
Owner

Summary

  • add a rendered DuckDuckGo result-card fallback when Search Assist and structured providers have no answer
  • fetch bounded public HTML excerpts and Reddit public JSON, with source attribution
  • reject private/local destinations, unusual ports, unsafe redirects, oversized responses, and non-HTML content
  • preserve existing Search Assist, Instant Answer, Wikidata, and final search-link behavior
  • update ask configuration, deployment, and plugin documentation

Validation

  • go test ./...
  • go vet ./...
  • go test -race ./plugins
  • go build ./cmd/irc-bot
  • git diff --check

The rendered fallback requires Chromium/Chrome when enabled; Docker already includes Chromium.

@variablenix
variablenix merged commit e543197 into main Aug 16, 2026
3 checks passed
@variablenix
variablenix deleted the feat/ask-web-result-fallback branch August 16, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant