Skip to content

Commit

Permalink
fixed small error in config
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardmedicNL committed Nov 8, 2023
1 parent 29b1425 commit 25f348a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/example_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion post.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<POST> 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
Expand Down

0 comments on commit 25f348a

Please sign in to comment.