久久久久久久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>
                          主站蜘蛛池模板: 亚洲一区视频在线 | 在线免费视频一区 | 欧美日本韩国一区二区三区 | 国产精品乱码一二三区的特点 | 久久久久久久久99 | 欧美aa在线| 欧美精品一区二区三区在线 | 狠狠操狠狠干 | 免费一区二区三区 | 日韩福利在线 | 欧美成人一区二区 | 日韩毛片视频 | 日韩在线中文 | 国产精品成人一区二区三区 | 91精品在线播放 | 日本色高清 | 欧美自拍网站 | 亚洲 中文 欧美 日韩 在线观看 | 国产欧美在线观看 | 日韩1区2区 | 日韩电影一区二区三区 | 国产精品视频免费观看 | 精品产国自在拍 | 国产欧美日韩一区 | 人人爽日日躁夜夜躁尤物 | 国产精品国产成人国产三级 | 亚洲视频二区 | 亚洲一区二区免费视频 | 成人综合伊人 | 久热精品视频 | 日韩中文字幕一区二区 | 91色网站| 波多野结衣一二三区 | 精品欧美黑人一区二区三区 | 一区二区国产精品 | 欧美在线国产精品 | 亚洲国产片 | 欧美中文一区 | 国产精品18毛片一区二区 | 一区二区在线免费观看 | 综合二区 |