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("/");
}