python+discordで定期的にプログラムからメッセージを送りたい 一番シンプルなpost webhook_urlを自分の物に書き換え (取得方法は下の方に軽く書いてあります) import requests webhook_url = 'https://discordapp.com/api/webhooks/〇〇〇〇〇〇〇〇〇〇〇〇〇〇' main_content = { "content": "ここにメッセージ" } requests.post(webhook_url,main_content)
![discordのwebhookをpythonのrequestsのpostで使う](https://cdn-ak-scissors.b.st-hatena.com/image/square/d0765cbc471687d4c55d0a47dcae25c1ac142617/height=288;version=1;width=512/https%3A%2F%2Fjibundex.com%2Fwp-content%2Fuploads%2F2018%2F11%2FScreenshot_199.png)