From 25f348ac0467969c6c0350d6fd6f97ae7b2e0cf9 Mon Sep 17 00:00:00 2001 From: KeyboardMedic Date: Wed, 8 Nov 2023 01:29:00 +0100 Subject: [PATCH] fixed small error in config --- config/example_config.json | 2 +- post.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/example_config.json b/config/example_config.json index 369fa11..8e16623 100644 --- a/config/example_config.json +++ b/config/example_config.json @@ -4,7 +4,7 @@ "discord_webhook_url": "webhook to post main messages to", "poll_interval": "time in minutes between polls", "use_web_server": "true or false", - "webs_erver_url": "adress for local webserver OPTIONAL", + "web_server_url": "adress for local webserver OPTIONAL", "web_server_port": "port for local webserver OPTIONAL", "use_discord_logs": "true or false", "discord_remote_log_url": "webhook to post log messages to OPTIONAL", diff --git a/post.py b/post.py index 331a3ce..b7fe0d9 100644 --- a/post.py +++ b/post.py @@ -34,7 +34,7 @@ def discord_remote_log(title,color,description): currentTime = currentTime.timestamp() myobj = {'name': bot_name, 'time': currentTime} # formats currenttime in unix timestamp and bot_name into correct json formatting try: - x = requests.post( f"https://{remote_http_server_url}", json = myobj) # sends post request + x = requests.post( remote_http_server_url, json = myobj) # sends post request print(" webhook response is: " + x.text) # log message discord_remote_log("Goinglivebot/post",14081792,f"webhook response is: {x.text}") except Exception as e: # catches exception