Your Name 3 anni fa
parent
commit
87e1ce8cfe
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      step_question/apis/newbot.py

+ 4 - 1
step_question/apis/newbot.py

@@ -52,7 +52,10 @@ def message_text(event):
         lineBotApi.reply_message(
             event.reply_token, linebotModels.AudioSendMessage(
                 original_content_url=f'{baseUrl}/static/audio/noot_noot.mp3', duration=1000))
-
+    if event.message.text=='ok':
+        lineBotApi.reply_message(
+            event.reply_token,
+            TextSendMessage(text='您本月營收為9,287元'))
 
 
 #if __name__ == "__main__":