PageSourceSearch

https://serverstats.bot/_next/static/chunks/0at96_3bk-wau.js

js serverstats.bot collected 2026-10-09 21:53:48 UTC 8,853 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28581,e=>{"use strict";var s=e.i(43476),t=e.i(71645),a=e.i(94507),l=e.i(11152),r=e.i(54588),d=e.i(1805);function n(e){let s=e.filter(e=>!isNaN(e.latency)).map(e=>e.latency),t=Math.max(...s,0);return{averageLatency:s.length>0?Math.round(s.reduce((e,s)=>e+s,0)/s.length):"N/A",highestLatency:t||"N/A"}}function i(e){let s=e.map(e=>e.status),t=s.every(e=>"ready"===e),a=s.every(e=>"offline"===e),l=s.some(e=>"ready"===e),r=s.some(e=>"offline"===e);return t?"text-green-500":a?"text-gray-600":l&&r?"text-yellow-600":l?"text-yellow-500":"text-zinc-800"}e.s(["default",0,()=>{let[e,c]=(0,t.useState)(null),[o,x]=(0,t.useState)(60),[h,m]=(0,t.useState)(""),[u,g]=(0,t.useState)(null),[b,j]=(0,t.useState)(null);(0,t.useEffect)(()=>{window.scrollTo(0,-1)},[]),(0,t.useEffect)(()=>{p();let e=setInterval(p,6e4);return()=>clearInterval(e)},[]);let p=()=>{fetch("https://api.serverstats.bot/stats").then(e=>e.json()).then(e=>{c(e),x(60)}).catch(e=>console.error("Error fetching data:",e))};return((0,t.useEffect)(()=>{let e=setInterval(()=>{x(e=>e>0?e-1:60)},1e3);return()=>clearInterval(e)},[]),e)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("head",{children:[(0,s.jsx)("title",{children:"ServerStats | Status"}),(0,s.jsx)("meta",{name:"description",content:"Are you interested in seeing if ServerStats is working correctly? You can view any potential problems we are facing on this status page."}),(0,s.jsx)("link",{rel:"canonical",href:"https://serverstats.bot/status"},"canonical"),(0,s.jsx)("link",{rel:"discord:component-embed",type:"application/json",href:"https://serverstats.bot/embed/embed.json"})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(r.default,{}),(0,s.jsx)("section",{className:"py-24 px-5",children:(0,s.jsx)("div",{className:"bg-zinc-900 text-white",children:(0,s.jsx)("div",{className:"max-w-4xl mx-auto space-y-6",children:(0,s.jsxs)("div",{className:"bg-[#222a3a] rounded-lg border-2 border-[#263042] shadow-lg p-6",children:[(0,s.jsx)("h1",{className:"font-extrabold text-center text-4xl mb-6",children:"Bot Status"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 mb-6",children:[(0,s.jsxs)("div",{className:"bg-[#181e2a] p-4 rounded-lg",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Next refresh"}),(0,s.jsxs)("div",{className:"text-lg font-semibold",children:[o,"s"]})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-4 rounded-lg",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Counter Updates"}),(0,s.jsx)("div",{className:"text-lg font-semibold",children:e.totalCounterUpdates.toLocaleString()})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-4 rounded-lg",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Unavailable Servers"}),(0,s.jsx)("div",{className:"text-lg font-semibold",children:e.totalUnavailableGuilds.toLocaleString()})]})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-4 rounded-lg mb-6 shadow-xl border border-[#2e3647]",children:[(0,s.jsxs)("form",{className:"flex w-full max-w-2xl mx-auto items-center gap-0 text-white",onSubmit:s=>{s.preventDefault();let t=16*e.clusters.length,a=Math.floor(parseInt(h,10)/4194304%t),l=e.clusters.find(e=>e.shardsStats.some(e=>e.id===a));l?(g({cluster:l.cluster,shardID:a+1}),j(l.cluster),setTimeout(()=>j(null),5e3)):(g(null),j(null))},children:[(0,s.jsx)(a.Input,{color:"white",className:"text-white rounded-l-lg rounded-r-none border border-[#2e394a] bg-[#151d2a] focus:!border-blue-400 focus:!ring-2 focus:!ring-blue-500 h-10",type:"text",inputMode:"numeric",pattern:"[0-9]*",variant:"outlined",label:"Search for a server by ID","aria-label":"Guild search",value:h,onChange:e=>{m(e.target.value.replace(/\D/g,""))}}),(0,s.jsx)(a.Button,{type:"submit",className:"bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white px-5 py-2 rounded-r-lg rounded-l-none shadow-lg hover:shadow-xl transition-all duration-300 h-10","aria-label":"Search submit",children:(0,s.jsx)(l.FaSearch,{size:"16"})})]}),u&&(0,s.jsxs)("div",{className:"mt-3 bg-[#222a3a] p-3 rounded-lg border-2 border-[#1f7daf] animate-[pulse_2s_ease-in-out_infinite]",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Search Result"}),(0,s.jsxs)("div",{className:"text-lg text-white",children:["Server located in cluster"," ",(0,s.jsx)("span",{className:"font-semibold text-[#22a7f0]",children:u.cluster+1})," and shard"," ",(0,s.jsx)("span",{className:"font-semibold text-[#22a7f0]",children:u.shardID})]})]})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-4 rounded-lg mb-6",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400 mb-3",children:"Status Indicators"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center bg-[#222a3a] p-2 rounded-lg",children:[(0,s.jsx)("span",{className:"w-4 h-4 bg-green-500 rounded-full mr-2"}),(0,s.jsx)("span",{children:"Online"})]}),(0,s.jsxs)("div",{className:"flex items-center bg-[#222a3a] p-2 rounded-lg",children:[(0,s.jsx)("span",{className:"w-4 h-4 bg-yellow-600 rounded-full mr-2"}),(0,s.jsx)("span",{children:"Partial Outage"})]}),(0,s.jsxs)("div",{className:"flex items-center bg-[#222a3a] p-2 rounded-lg",children:[(0,s.jsx)("span",{className:"w-4 h-4 bg-red-700 rounded-full mr-2"}),(0,s.jsx)("span",{children:"Outage"})]}),(0,s.jsxs)("div",{className:"flex items-center bg-[#222a3a] p-2 rounded-lg",children:[(0,s.jsx)("span",{className:"w-4 h-4 bg-gray-600 rounded-full mr-2"}),(0,s.jsx)("span",{children:"Offline"})]})]})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-4 rounded-lg",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400 mb-3",children:"Cluster
1s Status"}),(0,s.jsx)("div",{className:"grid grid-cols-5 sm:grid-cols-7 md:grid-cols-10 gap-2",children:e.clusters.map(e=>{let t,l,r,d,c;return(0,s.jsx)(a.Tooltip,{className:"bg-[#181e2a]/90 border-2 border-[#263042]",content:(0,s.jsxs)("div",{className:"p-2 space-y-2",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)("div",{className:"bg-[#181e2a] p-2 rounded",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Highest Latency"}),(0,s.jsxs)("div",{className:"text-lg font-semibold",children:[n(e.shardsStats).highestLatency,"ms"]})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-2 rounded",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Average Latency"}),(0,s.jsxs)("div",{className:"text-lg font-semibold",children:[n(e.shardsStats).averageLatency,"ms"]})]})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-2 rounded",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Status"}),(0,s.jsxs)("div",{className:`text-lg font-semibold ${i(e.shardsStats)}`,children:[e.shardsStats.filter(e=>"ready"===e.status).length," /"," ",e.shardsStats.length," shards ready"]})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-2 rounded",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Uptime"}),(0,s.jsx)("div",{className:"text-lg font-semibold",children:(l=Math.floor((t=Math.floor(e.clusterUptime/1e3))/86400),r=Math.floor(t%86400/3600),d=Math.floor(t%3600/60),c=[],l>0&&c.push(`${l}d`),r>0&&c.push(`${r}h`),(d>0||0===l&&0===r)&&c.push(`${d}m`),c.join(" "))})]}),(0,s.jsxs)("div",{className:"bg-[#181e2a] p-2 rounded",children:[(0,s.jsx)("div",{className:"text-sm text-gray-400",children:"Guilds"}),(0,s.jsx)("div",{className:"text-lg font-semibold",children:e.guilds.toLocaleString()})]})]}),animate:{mount:{scale:1,y:0},unmount:{scale:0,y:25}},placement:"left",children:(0,s.jsx)(a.Button,{className:`md:p-4 p-2 bg-[#222a3a] rounded-lg border-2 
2                            ${b===e.cluster?"border-[#1f7daf] shadow-lg shadow-[#1f7daf]/50 scale-110 transition-all duration-500":"border-[#263042] transition-all duration-500"} 
3                            text-center text-xl font-extrabold 
4                            ${i(e.shardsStats)}`,children:e.cluster+1})},e.cluster)})})]})]})})})}),(0,s.jsx)(d.default,{})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("head",{children:[(0,s.jsx)("title",{children:"ServerStats | Status"}),(0,s.jsx)("meta",{name:"description",content:"Are you interested in seeing if ServerStats is working correctly? You can view any potential problems we are facing on this status page."}),(0,s.jsx)("link",{rel:"canonical",href:"https://serverstats.bot/status"},"canonical"),(0,s.jsx)("link",{rel:"discord:component-embed",type:"application/json",href:"https://serverstats.bot/embed/embed.json"})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(r.default,{}),(0,s.jsx)("div",{className:"flex items-center justify-center min-h-screen font-bold text-white text-4xl",children:"Loading data..."}),(0,s.jsx)(d.default,{})]})]})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.