前提
Python,Github,HerokuでDiscordのBOTを作っていますが、
なぜかBOTがオンラインになりません。
Heroku側にエラー文みたいのも出ていました
やってほしいこと
プログラムを見てなぜかご回答をお願いします。
その他別に考えらえることがあったらお願いします。
参考にしたサイト
https://qiita.com/1ntegrale9/items/aa4b373e8895273875a8
対応してないのでPythonのバージョンは3.9.14にしています(runtime.txtを変えました)
これに8.のところはないので
overviewのdyno formationのdiscordbot discordbot.pyをonにしています。
参考にしたテンプレート
https://github.com/DiscordBotPortalJP/discordpy-startup
エラー文
2022-09-09T10:03:40.379810+00:00 heroku[discordbot.1]: State changed from up to crashed 2022-09-09T10:41:55.149317+00:00 heroku[discordbot.1]: State changed from crashed to starting 2022-09-09T10:41:57.048446+00:00 heroku[discordbot.1]: Starting process with command `python discordbot.py` 2022-09-09T10:41:57.663614+00:00 heroku[discordbot.1]: State changed from starting to up 2022-09-09T10:41:58.819716+00:00 app[discordbot.1]: Traceback (most recent call last): 2022-09-09T10:41:58.819750+00:00 app[discordbot.1]: File "/app/discordbot.py", line 6, in <module> 2022-09-09T10:41:58.819823+00:00 app[discordbot.1]: client = discord.Client() 2022-09-09T10:41:58.819860+00:00 app[discordbot.1]: TypeError: __init__() missing 1 required keyword-only argument: 'intents' 2022-09-09T10:41:58.990378+00:00 heroku[discordbot.1]: Process exited with status 1 2022-09-09T10:41:59.168782+00:00 heroku[discordbot.1]: State changed from up to crashed
やってみたこと
logを見てみたらPythonのバージョンが非対応だったので3.8.5から3.9.14に変えた
あとはHerokuの設定は間違っていないか確認した
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。