Media library

Drop files here, or click to choose sounds, videos or sticker images · several at once
built-in uploaded used by N ⓘ
<% for (const g of groups) { %>

<%= g.name %> <%= g.items.length %>

<% if (!g.items.length) { %>

<%= g.type === 'video' ? 'No videos yet: drop some above.' : 'Nothing here yet.' %>

<% } %>
<% for (const i of g.items) { %>
<% if (i.type === 'image') { %> <% } else if (i.type === 'video') { %> <% } else { %>🔊<% } %>
<%= i.label %>
<% if (i.type === 'audio') { %><% } %>
<%= i.source === 'upload' ? 'uploaded' : 'built-in' %> <% if (i.note) { %><%= i.note %><% } %> <% if (i.used) { %>used by <%= i.used %><% } %> <%= i.size > 1048576 ? (i.size / 1048576).toFixed(1) + ' MB' : Math.max(1, Math.round(i.size / 1024)) + ' KB' %> <% if (i.source === 'upload') { %>
<% } %>
<% } %>
<% } %>