久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <legend id='YolsG'><style id='YolsG'><dir id='YolsG'><q id='YolsG'></q></dir></style></legend>

  1. <small id='YolsG'></small><noframes id='YolsG'>

  2. <i id='YolsG'><tr id='YolsG'><dt id='YolsG'><q id='YolsG'><span id='YolsG'><b id='YolsG'><form id='YolsG'><ins id='YolsG'></ins><ul id='YolsG'></ul><sub id='YolsG'></sub></form><legend id='YolsG'></legend><bdo id='YolsG'><pre id='YolsG'><center id='YolsG'></center></pre></bdo></b><th id='YolsG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YolsG'><tfoot id='YolsG'></tfoot><dl id='YolsG'><fieldset id='YolsG'></fieldset></dl></div>

      <tfoot id='YolsG'></tfoot>
        <bdo id='YolsG'></bdo><ul id='YolsG'></ul>

      如何在 heroku 上托管我的 discord.py 機器人?

      How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
          <bdo id='shfdb'></bdo><ul id='shfdb'></ul>

            <legend id='shfdb'><style id='shfdb'><dir id='shfdb'><q id='shfdb'></q></dir></style></legend>

              <small id='shfdb'></small><noframes id='shfdb'>

              <tfoot id='shfdb'></tfoot>
                <tbody id='shfdb'></tbody>
            1. <i id='shfdb'><tr id='shfdb'><dt id='shfdb'><q id='shfdb'><span id='shfdb'><b id='shfdb'><form id='shfdb'><ins id='shfdb'></ins><ul id='shfdb'></ul><sub id='shfdb'></sub></form><legend id='shfdb'></legend><bdo id='shfdb'><pre id='shfdb'><center id='shfdb'></center></pre></bdo></b><th id='shfdb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='shfdb'><tfoot id='shfdb'></tfoot><dl id='shfdb'><fieldset id='shfdb'></fieldset></dl></div>
                本文介紹了如何在 heroku 上托管我的 discord.py 機器人?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我目前正在嘗試將我的 discord 機器人安裝到 Heroku 并 24/7 全天候托管它,但我遇到了問題.

                1. 我將我的機器人上傳到了 github ,用記事本打開它并寫入 worker: python name_of_bot_file.py 并保存在同一個存儲庫中

                1. 創建一個名為 runtime.txt 的文本文件并粘貼 python-3.6.5 或您用于編寫機器人的任何 python 版本并將其保存在相同的存儲庫.

                2. (如果您在 virtualenv 中,請退出)打開控制臺并編寫 heroku login 并輸入您的 heroku 登錄詳細信息

                3. 然后執行 heroku apps:create name_of_appheroku buildpacks:set heroku/python

                4. 最后,如果你只想推送一個分支,請執行 git push heroku maingit push heroku branch_name:main

                I am currently trying to get my discord bot on to Heroku and host it 24/7 but I am having problems.

                1. I uploaded my bot to github https://github.com/zemocode/flankebot/tree/master

                2. I have created the two main files I needed

                3. I clicked deploy branch on Heroku and I'm getting this error.

                 !     No default language could be detected for this app.
                            HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
                            See https://devcenter.heroku.com/articles/buildpacks
                 !     Push failed
                

                I have followed tutorials but everyone else has node.js and I so mine doesn't work.

                解決方案

                You're missing a couple of things to make this work, for the sake of everyone Googling how to host discord.py on Heroku and getting this as the top result here's a step-by-step

                1. Install Git and do git init when inside your directory
                2. (If you're using virtualenv or similar go into it and) do pip freeze then copy the contents you get to a file called requirements.txt and save it in the same repository as the bot
                3. Make a file (a file of type file) , open it with notepad and write worker: python name_of_bot_file.py and save within the same repository

                1. Make a text file called runtime.txt and paste python-3.6.5 or whichever python version you were using to write the bot and save it in the same repository.

                2. (If you're inside virtualenv get out and) open your console and write heroku login and input your heroku login details

                3. Then do heroku apps:create name_of_app and heroku buildpacks:set heroku/python

                4. Finally, do git push heroku main or git push heroku branch_name:main if you want to only push one branch

                這篇關于如何在 heroku 上托管我的 discord.py 機器人?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                message.channel.id Discord PY(message.channel.id Discord PY)
                discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                ModuleNotFoundError: No module named #39;cogs#39;(ModuleNotFoundError:沒有名為“cogs的模塊)

                <tfoot id='GFult'></tfoot>
                  <tbody id='GFult'></tbody>

                        <bdo id='GFult'></bdo><ul id='GFult'></ul>

                      • <i id='GFult'><tr id='GFult'><dt id='GFult'><q id='GFult'><span id='GFult'><b id='GFult'><form id='GFult'><ins id='GFult'></ins><ul id='GFult'></ul><sub id='GFult'></sub></form><legend id='GFult'></legend><bdo id='GFult'><pre id='GFult'><center id='GFult'></center></pre></bdo></b><th id='GFult'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GFult'><tfoot id='GFult'></tfoot><dl id='GFult'><fieldset id='GFult'></fieldset></dl></div>

                        <small id='GFult'></small><noframes id='GFult'>

                        <legend id='GFult'><style id='GFult'><dir id='GFult'><q id='GFult'></q></dir></style></legend>
                          主站蜘蛛池模板: 亚洲天堂av在线 | 韩日一区 | 性网站免费 | 国产精品一区二区不卡 | 久久久久久国产精品免费免费男同 | 亚洲精品自在在线观看 | 久久久一二三区 | 999观看免费高清www | 亚洲精品日韩在线 | 欧美一区二区三区国产精品 | 久久亚洲一区二区三 | 色综合久久久久 | 91av精品 | 国产成人免费视频网站高清观看视频 | 免费国产一区 | 久久久久国产精品午夜一区 | 国产精品久久毛片av大全日韩 | 成人免费xxxxx在线视频 | 免费一级欧美在线观看视频 | 成人毛片视频免费 | 久久久精品一区二区三区四季av | 911网站大全在线观看 | 国产中的精品av涩差av | 国产精品久久久久无码av | 美女二区 | 国内精品视频在线观看 | 一区二区三区久久久 | 久视频在线观看 | 99re在线视频观看 | 天天色官网 | 午夜在线观看免费 | 亚洲综合在线播放 | 亚洲成人三级 | 毛片站 | 一本色道精品久久一区二区三区 | 日韩在线观看一区二区三区 | 在线日韩欧美 | 成人免费观看视频 | 成人av在线播放 | 欧美精品v国产精品v日韩精品 | 精品欧美一区二区在线观看视频 |