Add restart to compose file.

Signed-off-by: Abdulkadir Furkan Şanlı <me@abdulocra.cy>
This commit is contained in:
Abdulkadir Furkan Şanlı 2024-08-15 22:19:35 +02:00
parent 122622b442
commit be5271372c
Signed by: afk
SSH Key Fingerprint: SHA256:s1hULLl4YWdqU501MUfGe1CAG/m1pf9Cs6vFsqeTNHk
2 changed files with 2 additions and 0 deletions

View File

@ -2,5 +2,6 @@ services:
parkerbot: parkerbot:
build: . build: .
env_file: .env env_file: .env
restart: unless-stopped
volumes: volumes:
- ./data:/data - ./data:/data

View File

@ -232,6 +232,7 @@ async def send_playlist_of_week(client, sender, room_id, playlist_id):
content={"msgtype": "m.text", "body": reply_msg}, content={"msgtype": "m.text", "body": reply_msg},
) )
async def send_playlist_of_all(client, sender, room_id, playlist_id): async def send_playlist_of_all(client, sender, room_id, playlist_id):
"""Sends playlist of all time in reply to sender, in room with room_id.""" """Sends playlist of all time in reply to sender, in room with room_id."""
playlist_link = f"https://www.youtube.com/playlist?list={playlist_id}" playlist_link = f"https://www.youtube.com/playlist?list={playlist_id}"