diff --git a/README.md b/README.md
index 667fc16..331387c 100644
--- a/README.md
+++ b/README.md
@@ -141,6 +141,7 @@ html page (`index.html`) where you can:
* See the damage, crowd control, boon uptime, resurrects, mechanic fails, downs and deaths of every player
* See the health of the boss when you wiped
* See the statistics over all days (kill rate and time per encounter, downs and deaths) on the Statistics tab
+* Copy the statistics of a boss as a Discord-formatted message (summary, an aligned table of the tries and links to the logs) with the "Copy for Discord" button on the boss page, and the boss health left per try as a picture with "Copy image"
* Look at one boss in detail on the Boss tab (or with "Stats →" on a boss card): all tries of a day or of all days, boss health left per try, fastest kill, best wipe, and per player average/best DPS, mechanic fails, downs and deaths
* Click on the try to go to the log (the html log of Elite Insights, or the dps.report page)
diff --git a/raidTimeline.Logic/template.html b/raidTimeline.Logic/template.html
index 7ee130d..adeca08 100644
--- a/raidTimeline.Logic/template.html
+++ b/raidTimeline.Logic/template.html
@@ -524,13 +524,25 @@
const bossNames = Object.keys(bossStats).sort((a, b) => bossStats[b].tries - bossStats[a].tries || a.localeCompare(b));
const hp0 = e => e.log.hpLeft.length ? e.log.hpLeft[0] : null;
const dash = '–';
-function bossBody(name, dayKey) {
+function bossData(name, dayKey) {
const tries = allEnc.filter(e => e.boss === name && (dayKey === 'all' || e.day === dayKey));
const kills = tries.filter(e => e.kill), wipes = tries.filter(e => !e.kill);
const fastest = kills.length ? Math.min(...kills.map(e => e.sec)) : null;
const hps = wipes.map(hp0).filter(v => v !== null);
const bestWipe = hps.length ? Math.min(...hps) : null;
const avgDps = tries.reduce((s, e) => s + gdps(e), 0) / (tries.length || 1);
+ const pl = {};
+ tries.forEach(e => e.log.players.filter(p => !p.isNpc).forEach(p => {
+ const a = pl[p.account] ??= { p, n: 0, dps: 0, best: 0, downed: 0, died: 0, mech: 0 };
+ a.n++; a.dps += p.dps; a.best = Math.max(a.best, p.dps); a.downed += p.downed; a.died += p.died;
+ a.mech += e.log.columns.filter(c => c.rank).reduce((s, c) => s + (p.mechanics[c.key] ?? 0), 0);
+ a.p = p;
+ }));
+ const players = Object.values(pl).sort((a, b) => b.dps / b.n - a.dps / a.n);
+ return { tries, kills, wipes, fastest, bestWipe, avgDps, players };
+}
+function bossBody(name, dayKey) {
+ const { tries, kills, fastest, bestWipe, avgDps, players: plist } = bossData(name, dayKey);
const cards = `