mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
better summary format
This commit is contained in:
parent
16f5dc4fd7
commit
289b7cc79a
1 changed files with 8 additions and 1 deletions
|
@ -1327,7 +1327,14 @@ export function messageSummary(msg: SavedMessage) {
|
|||
}
|
||||
|
||||
if (msg.data.poll) {
|
||||
result += "Poll: ```" + escapeCodeBlock(JSON.stringify(msg.data.poll)) + "```";
|
||||
const poll = msg.data.poll;
|
||||
result +=
|
||||
"Poll: ```" +
|
||||
escapeCodeBlock(
|
||||
`Question: ${poll.question.text}
|
||||
Answers: ${poll.answers.map((answer) => answer.text).join(" | ")}`,
|
||||
) +
|
||||
"```";
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue