mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-04-27 11:25:23 +00:00
Add text next to protections emoji
Fixes https://github.com/matrix-org/mjolnir/issues/16
This commit is contained in:
@@ -48,7 +48,7 @@ export async function execListProtections(roomId: string, event: any, mjolnir: M
|
||||
let text = "Available protections:\n";
|
||||
|
||||
for (const protection of possibleProtections) {
|
||||
const emoji = enabledProtections.includes(protection) ? '🟢' : '🔴'; // green vs red circles
|
||||
const emoji = enabledProtections.includes(protection) ? '🟢 (enabled)' : '🔴 (disabled)';
|
||||
html += `<li>${emoji} <code>${protection}</code> - ${PROTECTIONS[protection].description}</li>`;
|
||||
text += `* ${emoji} ${protection} - ${PROTECTIONS[protection].description}\n`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user