Change default engines
This commit is contained in:
parent
67d09b029e
commit
22e7caa0f5
3
index.js
3
index.js
@ -6,7 +6,7 @@ function Searxng(matrixClient) {
|
|||||||
this.cooldownImmuneUsers = [];
|
this.cooldownImmuneUsers = [];
|
||||||
this.roomCooldowns = new Map();
|
this.roomCooldowns = new Map();
|
||||||
this.searxngInstance = "";
|
this.searxngInstance = "";
|
||||||
this.searxngParameters = "enabled_engines=duckduckgo images__images,bing images__images&disabled_engines=flickr__images,nyaa__images,qwant images__images,google images__images,artic__images,deviantart__images,library of congress__images,unsplash__images,openverse__images"
|
this.searxngParameters = "enabled_engines=duckduckgo images__images,google images__images,bing images__images&disabled_engines=flickr__images,nyaa__images,qwant images__images,artic__images,deviantart__images,library of congress__images,unsplash__images,openverse__images"
|
||||||
}
|
}
|
||||||
|
|
||||||
Searxng.prototype.setUploadMatrixClient = function(uploadMatrixClient){ this.uploadMatrixClient = uploadMatrixClient; };
|
Searxng.prototype.setUploadMatrixClient = function(uploadMatrixClient){ this.uploadMatrixClient = uploadMatrixClient; };
|
||||||
@ -191,6 +191,7 @@ Searxng.prototype.handleMessage = function(event, room) {
|
|||||||
|
|
||||||
if (typeof results === 'undefined' || results == null || results.length <= 0) {
|
if (typeof results === 'undefined' || results == null || results.length <= 0) {
|
||||||
matrixClient.sendNotice(room.roomId, "No results found for \""+toSearch+"\"");
|
matrixClient.sendNotice(room.roomId, "No results found for \""+toSearch+"\"");
|
||||||
|
console.log(body);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (resultIndex > (results.length - 1)) {
|
else if (resultIndex > (results.length - 1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user