瀏覽代碼

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)