|
@@ -16,7 +16,7 @@ def broadcast(this_message):
|
|
|
load_dotenv()
|
|
load_dotenv()
|
|
|
url = os.environ["BROADCAST_URL"]
|
|
url = os.environ["BROADCAST_URL"]
|
|
|
this_time = datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M')
|
|
this_time = datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M')
|
|
|
- json = {'content': this_time + ': ' + this_message}
|
|
|
|
|
|
|
+ json = {'content': this_time + ': ' + this_message.lstrip()}
|
|
|
response = requests.post(url, json=json)
|
|
response = requests.post(url, json=json)
|
|
|
if response.status_code in [200, 204]:
|
|
if response.status_code in [200, 204]:
|
|
|
print("Webhook executed")
|
|
print("Webhook executed")
|