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}"