alanchen1115 commited on
Commit
cdb7b92
·
verified ·
1 Parent(s): 846eaf3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -1
main.py CHANGED
@@ -56,7 +56,10 @@ async def webhook(
56
  @line_handler.add(MessageEvent, message=TextMessage)
57
  def handle_message(event):
58
  global working_status
59
-
 
 
 
60
  if event.message.text == "再見":
61
  working_status = True
62
  line_bot_api.reply_message(
 
56
  @line_handler.add(MessageEvent, message=TextMessage)
57
  def handle_message(event):
58
  global working_status
59
+
60
+ if event.type != "message" or event.message.type != "text":
61
+ out = "Gemini: [No response or the response does not contain text]"
62
+
63
  if event.message.text == "再見":
64
  working_status = True
65
  line_bot_api.reply_message(