From 53cb8665ffdd05c1757e1805c4ff9ff00e82612c Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 19 Oct 2024 12:20:37 +0000 Subject: [PATCH] add ask gpt --- src/libpoketube/init/pages-channel-and-download.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index 2f91a2cf..293aa8b2 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -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("/"); }