소스 검색

Fixed nag variable called before defined.

deadtom 3 일 전
부모
커밋
b7cbdb21bc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)