回答編集履歴
4
誤りを修正
    
        answer	
    CHANGED
    
    | 
         @@ -1,19 +1,2 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            そもそも返信するコードがないようです。
         
     | 
| 
       2 
     | 
    
         
            -
            [discord.py 1.5.0 ドキュメント/よくある質問/on_message を使うとコマンドが動作しなくなります。どうしてですか。](https://discordpy.readthedocs.io/ja/latest/faq.html#why-does-on-message-make-my-commands-stop-working)
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            > デフォルトで提供されている`on_message`をオーバーライドすると、コマンドが実行されなくなります。これを修正するには`on_message`の最後に`bot.process_commands(message)`を追加してみてください。
         
     | 
| 
       5 
     | 
    
         
            -
            ```python
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
      
 2 
     | 
    
         
            +
            動くわけありません。
         
     | 
| 
       7 
     | 
    
         
            -
            async def on_message(message):
         
     | 
| 
       8 
     | 
    
         
            -
                # 何かする
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
                await bot.process_commands(message)
         
     | 
| 
       11 
     | 
    
         
            -
            ```
         
     | 
| 
       12 
     | 
    
         
            -
            > また、`on_message`を**リスナーとして**追加することが出来ます。もしこのやり方を使う場合、`bot.process_commands()`を手動で実行しないでください。一つのコマンドに何回も反応します。
         
     | 
| 
       13 
     | 
    
         
            -
            ```py
         
     | 
| 
       14 
     | 
    
         
            -
            @bot.listen('on_message')
         
     | 
| 
       15 
     | 
    
         
            -
            async def whatever_you_want_to_call_it(message):
         
     | 
| 
       16 
     | 
    
         
            -
                # 何かする
         
     | 
| 
       17 
     | 
    
         
            -
                # process_commandsはここではしない
         
     | 
| 
       18 
     | 
    
         
            -
            ```
         
     | 
| 
       19 
     | 
    
         
            -
            (後半は翻訳)
         
     | 
3
翻訳と言う事の追記
    
        answer	
    CHANGED
    
    | 
         @@ -15,4 +15,5 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
            async def whatever_you_want_to_call_it(message):
         
     | 
| 
       16 
16 
     | 
    
         
             
                # 何かする
         
     | 
| 
       17 
17 
     | 
    
         
             
                # process_commandsはここではしない
         
     | 
| 
       18 
     | 
    
         
            -
            ```
         
     | 
| 
      
 18 
     | 
    
         
            +
            ```
         
     | 
| 
      
 19 
     | 
    
         
            +
            (後半は翻訳)
         
     | 
2
言い方の修正
    
        answer	
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            APIリファレンスのよくある質問に書いてあります。もう少し 
     | 
| 
      
 1 
     | 
    
         
            +
            APIリファレンスのよくある質問に書いてあります。もう少し検索してから質問しましょう。
         
     | 
| 
       2 
2 
     | 
    
         
             
            [discord.py 1.5.0 ドキュメント/よくある質問/on_message を使うとコマンドが動作しなくなります。どうしてですか。](https://discordpy.readthedocs.io/ja/latest/faq.html#why-does-on-message-make-my-commands-stop-working)
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            > デフォルトで提供されている`on_message`をオーバーライドすると、コマンドが実行されなくなります。これを修正するには`on_message`の最後に`bot.process_commands(message)`を追加してみてください。
         
     | 
1
リンク名の変更
    
        answer	
    CHANGED
    
    | 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            APIリファレンスのよくある質問に書いてあります。もう少し読みましょう。
         
     | 
| 
       2 
     | 
    
         
            -
            [discord.py  
     | 
| 
      
 2 
     | 
    
         
            +
            [discord.py 1.5.0 ドキュメント/よくある質問/on_message を使うとコマンドが動作しなくなります。どうしてですか。](https://discordpy.readthedocs.io/ja/latest/faq.html#why-does-on-message-make-my-commands-stop-working)
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            > デフォルトで提供されている`on_message`をオーバーライドすると、コマンドが実行されなくなります。これを修正するには`on_message`の最後に`bot.process_commands(message)`を追加してみてください。
         
     | 
| 
       5 
5 
     | 
    
         
             
            ```python
         
     |