🚸 Add notice about timetable groups being wip

This commit is contained in:
2023-06-23 19:22:15 +02:00
parent fdda824434
commit 10eeb84841

View File

@ -155,7 +155,7 @@ async function handleMessage(event, room) {
<li> <code>info</code>: Get information about the current room's configuration </li> <li> <code>info</code>: Get information about the current room's configuration </li>
<li> <code>filter [class (eg. 10c)]</code>: Set the class to filter for. Use only filter available in the timetable v2 app.</li> <li> <code>filter [class (eg. 10c)]</code>: Set the class to filter for. Use only filter available in the timetable v2 app.</li>
<li> <code>timetable</code>: Set your timetable</li> <li> <code>timetable</code>: Set your timetable</li>
<li> <code>groups</code>: Configure your timetable groups</li> <li> <code>groups</code>: Configure your timetable groups <i>[Not implemented yet]</i></li>
<li> <code>reset</code>: Reset the configuration for this room</li> <li> <code>reset</code>: Reset the configuration for this room</li>
`; `;
client.sendHtmlMessage(room, plainText(helpMessage), helpMessage); client.sendHtmlMessage(room, plainText(helpMessage), helpMessage);
@ -209,7 +209,9 @@ async function handleMessage(event, room) {
await db.getData(`/rooms/${room}/filter`), await db.getData(`/rooms/${room}/filter`),
await db.getData(`/rooms/${room}/timetable`) await db.getData(`/rooms/${room}/timetable`)
); );
let response = `🛠 Set your timetable groups by reacting with the correct group. React with ✅ to confirm your selection.<ul>`; let response = `🛠 Set your timetable groups by reacting with the correct group. React with ✅ to confirm your selection.`;
response +=
"<br>\n<b>Warning:</b> Timetable group support is WIP. You can configure your timetable groups, but they will not be taken into account while processing updates just yet. ";
const message = await client.sendHtmlMessage( const message = await client.sendHtmlMessage(
room, room,
plainText(response), plainText(response),