mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 11:27:46 +01:00
add ask gpt
This commit is contained in:
parent
4e4dee2879
commit
53cb8665ff
1 changed files with 5 additions and 0 deletions
|
@ -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("/");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue