1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 01:34:43 -05:00

add ask gpt

This commit is contained in:
ashley 2024-10-19 12:20:37 +00:00
parent 4e4dee2879
commit 53cb8665ff

View file

@ -135,6 +135,11 @@ module.exports = function (app, config, renderTemplate) {
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) {
return res.redirect("/");
}