Explorar o código

Fixed nag variable called before defined.

deadtom hai 2 semanas
pai
achega
b7cbdb21bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nagbot.py

+ 1 - 1
nagbot.py

@@ -22,7 +22,7 @@ def live_now():  # Check if the stream is live
 
 def send_msg(msg):
     if live_now() is True:
-        logging.info(f'{get_now()} - Sending \"{nag}\"...')
+        logging.info(f'{get_now()} - Sending \"{msg}\"...')
         new_status = {'body': msg}
         headers = {'Authorization': f'Bearer {config.auth_bearer}'}
         response = requests.post(f'{config.owncast_url}/api/integrations/chat/send', data=json.dumps(new_status), headers=headers)