mirror of
https://codeberg.org/ashley/poke
synced 2025-04-05 17:17:59 +00:00
add ask gpt
This commit is contained in:
parent
4e4dee2879
commit
53cb8665ff
@ -135,6 +135,11 @@ module.exports = function (app, config, renderTemplate) {
|
|||||||
res.redirect("https://lite.duckduckgo.com/lite/?q=" + query);
|
res.redirect("https://lite.duckduckgo.com/lite/?q=" + query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (query && query.startsWith("Hey ChatGPT,") && query.length > 2) {
|
||||||
|
res.redirect("https://chatgpt.com/?q=" + query + "- sent using pokeAI features");
|
||||||
|
}
|
||||||
|
|
||||||
if (!query) {
|
if (!query) {
|
||||||
return res.redirect("/");
|
return res.redirect("/");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user