From 2963b37c777e895365b88a09bff7a4eca697c0dc Mon Sep 17 00:00:00 2001 From: Reariuz <118771123+Reariuz@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:27:12 +0200 Subject: [PATCH] Update Discourse_bot.py APIs cleared --- Discourse_bot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Discourse_bot.py b/Discourse_bot.py index f457a75..b757501 100644 --- a/Discourse_bot.py +++ b/Discourse_bot.py @@ -1,6 +1,10 @@ +import os +DISCOURSE_API_KEY = os.getenv("DISCOURSE_API_KEY") +DISCOURSE_API_NAME = os.getenv("DISCOURSE_API_NAME") + from fluent_discourse import Discourse -client = Discourse(base_url="https://hub.diehumanisten.de", username="rene.bruns", - api_key="75e55d01584d41ebc915ee911ab9a08f2e4b992d7a2429da09dbe19b718c32b0", raise_for_rate_limit=False) +client = Discourse(base_url="https://hub.diehumanisten.de", username=DISCOURSE_API_NAME, + api_key=DISCOURSE_API_KEY, raise_for_rate_limit=False) def Hub_POST(message):