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 invite/logout/youtube aliase

Luna 6666e8fc 8050c406

+19 -1
+18 -1
app/[pathname]/page.tsx
··· 4 4 params: { pathname: string } 5 5 } 6 6 7 - export default function Home({ params }: Props) { 7 + const fetchOptions = { next: { revalidate: 60 * 60 } }; 8 + 9 + export default async function Home({ params }: Props) { 8 10 9 11 switch (params.pathname) { 10 12 case "support": 11 13 return redirect("https://discord.com/invite/DNyyA2HFM9"); 12 14 case "vote": 13 15 return redirect("https://top.gg/bot/1125449347451068437/vote"); 16 + case "invite": 17 + case "add": 18 + case "get": 19 + return redirect("/login?invite=true"); 20 + case "logout": 21 + return redirect("/login?logout=true"); 22 + case "youtube": 23 + case "docs": 24 + case "guides": { 25 + const res = await fetch("http://100.65.0.1:5001/?channel_id=UClWBeVcz5LUmcCN1gHG_GCg", fetchOptions) 26 + .then((res) => res.json()) 27 + .catch(() => null) as { videoUrl: string } | null; 28 + 29 + redirect(res?.videoUrl || "https://www.youtube.com/channel/UClWBeVcz5LUmcCN1gHG_GCg"); 30 + } 14 31 } 15 32 16 33 notFound();
+1
app/leaderboard/[guildId]/side.component.tsx
··· 73 73 as={Link} 74 74 className="w-full !justify-start" 75 75 color="secondary" 76 + variant="flat" 76 77 href={guild.inviteUrl} 77 78 target="_blank" 78 79 startContent={<BsDiscord />}