From 5419caa55384685dc9e73db50bb1e319c72b99b6 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 18 Apr 2025 18:27:17 -0600 Subject: [PATCH] fedimbed: quick poll fix --- src/modules/fedimbed.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 22436d6..c097030 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -1398,12 +1398,13 @@ async function processUrl(msg, url, spoiler = false, command = false) { container.components.push({ type: 10, content: + "> " + poll.options .map((o) => { const percent = o.count / poll.total; const bar = Math.round(percent * 32); - return `> **${o.name}** (${numberFormatter.format(o.count)}, ${Math.round( + return `**${o.name}** (${numberFormatter.format(o.count)}, ${Math.round( percent * 100 )}%\n> \`${"\u2588".repeat(bar)}${" ".repeat(32 - bar)}\``; })