fix DOcker file

This commit is contained in:
Entwicklung 2023-11-26 22:45:24 +01:00
parent 98c1201688
commit 5526cc4cdc
2 changed files with 7 additions and 2 deletions

View file

@ -3,6 +3,10 @@ version: '3.7'
services: services:
matrix-bot: matrix-bot:
build: . build: .
environment:
MATRIX_URL: ${MATRIX_URL}
MATRIX_TOKEN: ${MATRIX_TOKEN}
JITSI_ADMIN_URL: ${JITSI_ADMIN_URL}
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- secret_data:/home/node/app/secret_storage - secret_data:/home/node/app/secret_storage

View file

@ -54,7 +54,7 @@ async function handleCommand(roomId, event) {
await sendMessageWithUrl(client,roomId); await sendMessageWithUrl(client,roomId);
await changeRoomName(client, roomId); await changeRoomName(client, roomId);
} }
if (body?.startsWith("!help")){ if (body?.startsWith("!hilfe")){
sendHelp(client,roomId) sendHelp(client,roomId)
} }
} }
@ -79,7 +79,8 @@ async function changeRoomName(client, roomId){
async function sendHelp(client, roomId){ async function sendHelp(client, roomId){
await client.sendText( await client.sendText(
roomId, roomId,
'Neue Konfernz mit "!jitsi" erstellen' 'Neue Konferenz mit "!jitsi" erstellen\n\r' +
'Diese Hilfeseite mit "!hilfe" anzeigen'
); );
} }