Stats
<% if (live) { %>live · counting<% } %>
<%= since ? `Counting since ${since}` : 'Nothing counted yet: stats start with the next stream.' %>
· <%= hiddenCount %> hidden bot<%= hiddenCount === 1 ? '' : 's' %> left out ⓘ
· <% if (publicUrl) { %>Public page ↗<% } else { %>Public page preview ↗<% } %>
<%
const syncBad = Object.entries(sync.parts || {}).filter(([, v]) => !String(v).startsWith('ok'));
const syncTip = sync.at ? `Last sync ${sync.at.slice(0, 16).replace('T', ' ')} UTC: ` + Object.entries(sync.parts).map(([k, v]) => `${k} ${v}`).join(', ') : 'Not synced yet';
%>
Twitch sync: <%= sync.at ? `${sync.at.slice(0, 16).replace('T', ' ')} UTC` : 'never' %><% if (syncBad.length) { %> · <%= syncBad.map(([k]) => k).join(', ') %> failed<% } %> ⓘ
· analytics: <%= csv.days ? `${csv.days} days imported` : 'none imported' %>
· Sync, import and the public page: Settings → Stats and data
<% if (msg) { %><%= msg %>
<% } %>
<%- include('_statsbody', { s, q, base: '/stats', viewerHref: '/stats/viewer?q=', mode: 'admin', view, ranks, tz,
extraBoards: [{ title: 'Points · all time', rows: pointsBoard, level: x => x.level, wide: true }] }) %>