A maubot plugin that performs a web search on user's behalf using SearXNG and responds with the best matching result. It requires access to SearXNG instance that exposes its JSON API. SearXNG is a free internet metasearch engine which aggregates results from up to 248 search services. This plugin supports !bang syntax (except external bangs and automatic redirect) so it reduces the need for service specific plugins.
Type the query you'd like to pass to the search engine.
!sx query
!searxng query
The available options are:
url- public URL address of SearXNG instance.port- port number forurllanguage- default search language. Available options are listed here. Defaults toall.safesearch- available options areon,off, andmoderate(default). Controls the safe search filter. Keep in mind that some engines may not support that feature. See if an engine supports safe search in the preferences page of a SearXNG instance.
- This bot requires SearXNG instance to expose public JSON API. By default, this is disabled in instance's settings. You can change that by adding
jsontoformatsinsearchsection of the settings (settings.yml):
# remove format to deny access, use lower case.
# formats: [html, csv, json, rss]
formats:
- html
- json # <-- add this lineThis plugin is not affiliated with SearXNG. The official SearXNG website can be found at https://docs.searxng.org/.
