diff --git a/confernceUtils.mjs b/confernceUtils.mjs index 94b0950..8d61c33 100644 --- a/confernceUtils.mjs +++ b/confernceUtils.mjs @@ -29,12 +29,12 @@ export class conferenceUtils { async sendJoinConference(roomId) { var url = await this.createConference(roomId); - await this.client.sendHtmlText(roomId, '
Hier der Konferenz beitreten
'); + await this.client.sendHtmlText(roomId, 'Hier der Konferenz beitreten '); } async inviteAll(roomId) { var url = await this.createConference(roomId); - var text = '@room

Diese Konferenz startet gerade


Jetzt dieser Konfernz beitreten' + var text = '@room

Diese Konferenz startet gerade


➡️Jetzt dieser Konfernz beitreten' await this.client.sendHtmlText(roomId, text); } diff --git a/index.mjs b/index.mjs index 8d3ceaa..eae13eb 100644 --- a/index.mjs +++ b/index.mjs @@ -33,6 +33,13 @@ client.on("room.join", handlemembership); client.start().then(() => console.log("Bot started!")); client.setDisplayName(MATRIX_DISPLAYNAME) +client.getWhoAmI().then(userInfo => { + + console.log("Logged in as User:", userInfo.user_id); + console.log("Logged in with the device ID:", userInfo.device_id); +}).catch(err => { + console.error("Error verifying session:", err); +}); const conferenceUtil = new conferenceUtils(client); // This is the command handler we registered a few lines up async function handleCommand(roomId, event) {