Aethel Bot OSS repository! aethel.xyz
bot fun ai discord discord-bot aethel
0
fork

Configure Feed

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

fix: some more fixes

+17 -3
+1 -1
web/src/pages/LandingPage.tsx
··· 133 133 </p> 134 134 <div className="mt-8 flex flex-wrap justify-center gap-3 md:gap-4"> 135 135 <a 136 - href="https://discord.com/oauth2/authorize?client_id=1371031984230371369&scope=bot%20applications.commands" 136 + href={`https://discord.com/oauth2/authorize?client_id=${import.meta.env.VITE_DISCORD_CLIENT_ID}`} 137 137 className="btn btn-discord" 138 138 target="_blank" 139 139 rel="noopener noreferrer"
+16 -2
web/src/pages/StatusPage.tsx
··· 3 3 4 4 async function getGitCommitHash() { 5 5 try { 6 + const apiUrl = import.meta.env.VITE_BOT_API_URL; 7 + if (!apiUrl) { 8 + console.error('VITE_BOT_API_URL is not defined'); 9 + return null; 10 + } 6 11 const response = await fetch( 7 - `${import.meta.env.VITE_BOT_API_URL || 'https://bot-api.pur.cat'}/api/status`, 12 + `${apiUrl}/api/status`, 8 13 { 9 14 headers: { 10 15 'X-API-Key': import.meta.env.VITE_STATUS_API_KEY || '', ··· 31 36 32 37 async function getBotStatus() { 33 38 try { 34 - const baseUrl = import.meta.env.VITE_BOT_API_URL || 'http://localhost:3000'; 39 + const baseUrl = import.meta.env.VITE_BOT_API_URL; 40 + if (!baseUrl) { 41 + console.error('VITE_BOT_API_URL is not defined'); 42 + return { 43 + status: 'offline', 44 + botStatus: 'disconnected', 45 + error: 'VITE_BOT_API_URL environment variable is not configured', 46 + lastChecked: new Date().toISOString(), 47 + }; 48 + } 35 49 const url = `${baseUrl}/api/status`; 36 50 37 51 const controller = new AbortController();