From be5271372cc23dff51ef15084254dcf224c53afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdulkadir=20Furkan=20=C5=9Eanl=C4=B1?= Date: Thu, 15 Aug 2024 22:19:35 +0200 Subject: [PATCH] Add restart to compose file. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Abdulkadir Furkan Şanlı --- compose.yml | 1 + main.py | 1 + 2 files changed, 2 insertions(+) diff --git a/compose.yml b/compose.yml index e29c745..6ac6547 100644 --- a/compose.yml +++ b/compose.yml @@ -2,5 +2,6 @@ services: parkerbot: build: . env_file: .env + restart: unless-stopped volumes: - ./data:/data diff --git a/main.py b/main.py index 3691a61..578a0af 100755 --- a/main.py +++ b/main.py @@ -232,6 +232,7 @@ async def send_playlist_of_week(client, sender, room_id, playlist_id): content={"msgtype": "m.text", "body": reply_msg}, ) + 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.""" playlist_link = f"https://www.youtube.com/playlist?list={playlist_id}"