@@ -495,7 +495,7 @@ const generateCodeExamples = (algorithmName, language = 'javascript') => {
495495} ;
496496
497497// Enhanced algorithm recommendation system
498- const generateAlgorithmRecommendation = ( query , context ) => {
498+ const generateAlgorithmRecommendation = ( query , _context ) => {
499499 const lowerQuery = query . toLowerCase ( ) ;
500500
501501 // Use case based recommendations
@@ -1146,55 +1146,6 @@ export async function processMessage(query, context) {
11461146 }
11471147}
11481148
1149- // Generate responses as separate functions for readability and reusability
1150- function generateDeveloperResponse ( ) {
1151- return `
1152- <div class="animate-fade-in animate-duration-100 space-y-1 max-w-full">
1153- <p class="m-0 leading-tight break-words">SortVision was created by <span class="text-indigo-400 font-semibold animate-pulse animate-duration-[800ms]">alienX (Prabal Patra)</span>, a passionate developer dedicated to making algorithm learning more interactive and fun! 🚀</p>
1154- <div class="flex flex-col sm:flex-row flex-wrap gap-2 text-sm mt-1">
1155- <a href="https://github.com/alienx5499" target="_blank" class="inline-flex items-center gap-1 px-3 py-2 rounded-md border border-emerald-400 text-emerald-300 hover:bg-emerald-400/10 transition-all duration-150">
1156- 🐙 GitHub
1157- </a>
1158- <a href="https://www.linkedin.com/in/prabalpatra5499/" target="_blank" class="inline-flex items-center gap-1 px-3 py-2 rounded-md border border-blue-400 text-blue-300 hover:bg-blue-400/10 transition-all duration-150">
1159- 💼 LinkedIn
1160- </a>
1161- <a href="https://x.com/alienx5499" target="_blank" class="inline-flex items-center gap-1 px-3 py-2 rounded-md border border-sky-400 text-sky-300 hover:bg-sky-400/10 transition-all duration-150">
1162- 🐦 Twitter
1163- </a>
1164- </div>
1165- </div>` ;
1166- }
1167-
1168- function generateSupportResponse ( ) {
1169- return `
1170- <div class="animate-fade-in animate-duration-150 space-y-0.5 max-w-full">
1171- <p class="m-0 leading-tight break-words">Thank you for considering supporting SortVision! 💖</p>
1172- <div class="flex flex-col gap-2 mt-1">
1173- <a href="https://github.com/alienx5499/SortVision" target="_blank" class="inline-flex items-center gap-1 px-3 py-2 rounded-md border border-yellow-400 text-yellow-300 hover:bg-yellow-400/10 transition-all duration-150 text-sm">
1174- ⭐ Star on GitHub
1175- </a>
1176- <a href="https://github.com/sponsors/alienx5499" target="_blank" class="inline-flex items-center gap-1 px-3 py-2 rounded-md border border-pink-400 text-pink-300 hover:bg-pink-400/10 transition-all duration-150 text-sm">
1177- ♥ Sponsor on GitHub
1178- </a>
1179- <a href="https://buymeacoffee.com/alienx5499" target="_blank" class="inline-flex items-center gap-1 px-3 py-2 rounded-md border border-yellow-500 text-yellow-400 hover:bg-yellow-500/10 transition-all duration-150 text-sm">
1180- ☕ Buy me a coffee
1181- </a>
1182- </div>
1183- <p class="m-0 text-xs text-slate-400 animate-pulse animate-duration-[1000ms] break-words">Your support helps keep SortVision free and improving! 🙏</p>
1184- </div>` ;
1185- }
1186-
1187- function generateGithubResponse ( ) {
1188- return `
1189- <div class="animate-fade-in animate-duration-150 space-y-0.5 max-w-full">
1190- <p class="m-0 leading-tight break-words">You can find SortVision on GitHub <a href="https://github.com/alienx5499/SortVision" target="_blank" class="text-blue-400 hover:text-blue-300 underline transition-colors duration-150">here</a>!</p>
1191- <div class="animate-bounce animate-duration-[1000ms]">
1192- <p class="text-sm break-words">If you find this project helpful, please give it a ⭐️ star on GitHub!</p>
1193- </div>
1194- <p class="m-0 text-xs text-slate-400 break-words">Your support helps us grow and improve! 🙏</p>
1195- </div>` ;
1196- }
1197-
11981149function generateThankYouResponse ( ) {
11991150 return `
12001151 <div class="animate-fade-in animate-duration-150 space-y-0.5 max-w-full">
0 commit comments