質問編集履歴

1

修正

2018/05/01 00:34

投稿

DaichiYasuda
DaichiYasuda

スコア173

test CHANGED
File without changes
test CHANGED
@@ -26,6 +26,8 @@
26
26
 
27
27
  どなたかご教示お願い致します。
28
28
 
29
+ if文追記しました。
30
+
29
31
  ```python
30
32
 
31
33
 
@@ -42,6 +44,22 @@
42
44
 
43
45
  content = 'こんにちは'
44
46
 
47
+ if 'いい天気' event.message.text:
48
+
49
+ content = "そうですね"
50
+
51
+ line_bot_api.reply_message(
52
+
53
+ event.reply_token,
54
+
55
+ TextSendMessage(text=content)
56
+
57
+ )
58
+
59
+ else:
60
+
61
+ pass
62
+
45
63
  else:
46
64
 
47
65
  content = 'ごめんなさい、あまり喋れません'