質問するログイン新規登録

質問編集履歴

2

誤字

2018/01/11 10:27

投稿

poker
poker

スコア14

title CHANGED
File without changes
body CHANGED
@@ -3,14 +3,13 @@
3
3
  入力された文章に指定された単語が1つ以上含まれた場合の動作を
4
4
  ```python
5
5
  if text.find('おにぎり') > -1:
6
- if isinstance(event.source, SourceUser):
7
- line_bot_api.reply_message(
6
+ line_bot_api.reply_message(
8
- event.reply_token, [
7
+ event.reply_token, [
9
- TextSendMessage(
8
+ TextSendMessage(
10
- text='朝食'
9
+ text='朝食'
11
- ),
10
+ ),
12
- ]
11
+ ]
13
- )
12
+ )
14
13
  ```
15
14
  のようにして、動作しました。
16
15
 

1

誤字

2018/01/11 10:27

投稿

poker
poker

スコア14

title CHANGED
@@ -1,1 +1,1 @@
1
- Pythonの指定キーワードが1つ以上の動作が入力されたときの動作を作りたい。
1
+ Pythonの指定キーワードが1つ以上入力されたときの動作を作りたい。
body CHANGED
File without changes