From 555ce916707043db39ed6be21ef5841238000d74 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Thu, 12 Dec 2024 17:49:32 +0200 Subject: [PATCH] added more flexible .env options ) --- app/discord_client.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/discord_client.py b/app/discord_client.py index 7421400..bfdc787 100644 --- a/app/discord_client.py +++ b/app/discord_client.py @@ -13,6 +13,8 @@ class DiscordClient: def __init__(self): self._webhook_url = os.environ["DISCORD_WEBHOOK_URL"] + self.avatar_url = os.environ["AVATAR_URL"] + self.content = os.environ["CONTENT"] def send_information_to_discord( self, @@ -27,8 +29,9 @@ class DiscordClient: url=f"{self._webhook_url}?wait=true", json={ "username": "Randy", - "avatar_url": "https://i.imgur.com/DBOuwjx.png", - "content": f"@Notified {stream.user_name} went live! This guy bald as hell!!", + # "avatar_url": "https://i.imgur.com/DBOuwjx.png", + "avatar_url": f"{self.avatar_url}", + "content": f"{self.content}", "embeds": [ { "title": stream.title,