alanchen1115 commited on
Commit
e15e34e
β€’
1 Parent(s): df7b5e5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -58,7 +58,7 @@ def handle_message(event):
58
  global working_status
59
 
60
  if event.type != "message" or event.message.type != "text":
61
- TextSendMessage(text="Gemini: [No response or the response does not contain text]")
62
 
63
  elif event.message.text == "再見":
64
  working_status = True
@@ -82,7 +82,7 @@ def handle_message(event):
82
  if not response.parts or not response.parts[0].text:
83
  out = "Gemini: [No response or the response does not contain text]"
84
  except:
85
- out = "Gemini: [No response or the response does not contain text]"
86
 
87
  line_bot_api.reply_message(
88
  event.reply_token,
 
58
  global working_status
59
 
60
  if event.type != "message" or event.message.type != "text":
61
+ TextSendMessage(text="Event type error:[No response or the response does not contain text]")
62
 
63
  elif event.message.text == "再見":
64
  working_status = True
 
82
  if not response.parts or not response.parts[0].text:
83
  out = "Gemini: [No response or the response does not contain text]"
84
  except:
85
+ out = "Gemini error!"
86
 
87
  line_bot_api.reply_message(
88
  event.reply_token,