Преглед изворни кода

add js test reply function

ming пре 3 година
родитељ
комит
d45a9360dc
1 измењених фајлова са 5 додато и 0 уклоњено
  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)