mirror of
https://codeberg.org/ashley/poke
synced 2026-03-03 07:43:44 +00:00
add ask gpt
This commit is contained in:
@@ -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("/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user