Skip to content

Commit

Permalink
fix(notify): show rules with dash per line
Browse files Browse the repository at this point in the history
simplifies reading when rules are long and on multiple lines
  • Loading branch information
EdJoPaTo committed Mar 27, 2024
1 parent 72cf5e8 commit 8a7547a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const menu = new MenuTemplate<MyContext>(ctx => {
text += '\n\n';
text += format.bold('Deine Regeln');
text += '\n';
text += rules.map(rule => notifyRules.asHTML(rule)).sort().join('\n');
text += rules.map(rule => '- ' + notifyRules.asHTML(rule)).sort().join('\n');
}

return {text, parse_mode: format.parse_mode};
Expand Down

0 comments on commit 8a7547a

Please sign in to comment.