Przeglądaj źródła

add js test reply function

ming 3 lat temu
rodzic
commit
d45a9360dc
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      newbot.py

+ 5 - 0
newbot.py

@@ -213,6 +213,11 @@ def message_text(event):
             TextSendMessage(text='請輸入要找的關鍵字:'))
         return
     '''
+    if event.message.text=='js test':
+        line_bot_api.reply_message(
+            event.reply_token,
+            TextSendMessage(text=flex_test()))
+
     if event.message.text=='熱門關鍵字':
         out_result = get_hotkeys(False)