(t: string)
| 214 | // those out and use first vs last as "the interrupted reply" and |
| 215 | // "the new reply". |
| 216 | const isStatus = (t: string) => |
| 217 | t.startsWith(":warning:") || |
| 218 | t.startsWith(":wrench:") || |
| 219 | t.startsWith(":white_check_mark:"); |
| 220 | const meaningful = botReplies.filter((m) => !isStatus(m.text ?? "")); |
| 221 | const firstReply = meaningful[0]?.text; |
| 222 | const secondReply = meaningful[meaningful.length - 1]?.text; |