The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

add translate and datalix redirects

Luna e8763481 1699a3e6

+4 -9
+4 -9
app/[pathname]/page.tsx
··· 4 4 params: Promise<{ pathname: string; }>; 5 5 } 6 6 7 - const fetchOptions = { next: { revalidate: 60 * 60 } }; 8 7 const utm = "?utm_source=wamellow.com&utm_medium=redirect"; 9 8 10 9 export default async function Home({ params }: Props) { ··· 13 12 switch (pathname) { 14 13 case "support": return redirect("https://discord.com/invite/DNyyA2HFM9"); 15 14 case "vote": return redirect("https://top.gg/bot/1125449347451068437/vote" + utm); 16 - case "wumpus": return redirect("https://wumpus.store/bot/1125449347451068437" + utm); 17 15 case "invite": 18 16 case "add": 19 17 case "get": return redirect("/login?invite=true"); ··· 23 21 case "ai": return redirect("/ai-gallery"); 24 22 case "tts": return redirect("https://youtube.com/watch?v=NS5fZ1ltovE"); 25 23 case "disable-commands": return redirect("https://youtube.com/watch?v=ehc0_whydu8"); 26 - case "youtube": { 27 - const res = await fetch("http://100.65.0.1:5001/?channel_id=UClWBeVcz5LUmcCN1gHG_GCg", fetchOptions) 28 - .then((res) => res.json()) 29 - .catch(() => null) as { videoUrl: string; } | null; 30 - 31 - return redirect(res?.videoUrl || "https://www.youtube.com/channel/UClWBeVcz5LUmcCN1gHG_GCg"); 32 - } 24 + case "youtube": return redirect("https://www.youtube.com/channel/UClWBeVcz5LUmcCN1gHG_GCg"); 25 + case "translate": return redirect("https://crowdin.com/project/wamellow"); 26 + case "ref": return redirect("https://datalix.eu/a/luna" + utm); 27 + case "deref": return redirect("https://datalix.de/a/luna" + utm); 33 28 } 34 29 35 30 notFound();