pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <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="s2coo20" 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="k2iygou" 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. 創(chuàng)建一個名為 runtime.txt 的文本文件并粘貼 python-3.6.5 或您用于編寫機器人的任何 python 版本并將其保存在相同的存儲庫.

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

                3. 然后執(zhí)行 heroku apps:create name_of_appheroku buildpacks:set heroku/python

                4. 最后,如果你只想推送一個分支,請執(zhí)行 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模板網(wǎng)!

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

                相關文檔推薦

                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="ciisiaq" 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>
                          主站蜘蛛池模板: 阴离子_阳离子聚丙烯酰胺厂家_聚合氯化铝价格_水处理絮凝剂_巩义市江源净水材料有限公司 | 天津力值检测-天津管道检测-天津天诚工程检测技术有限公司 | 水平垂直燃烧试验仪-灼热丝试验仪-漏电起痕试验仪-针焰试验仪-塑料材料燃烧检测设备-IP防水试验机 | 天津暖气片厂家_钢制散热器_天津铜铝复合暖气片_维尼罗散热器 | 南京技嘉环保科技有限公司-杀菌除臭剂|污水|垃圾|厕所|橡胶厂|化工厂|铸造厂除臭剂 | 薪动-人力资源公司-灵活用工薪资代发-费用结算-残保金优化-北京秒付科技有限公司 | 山东信蓝建设有限公司官网 | 防火门-专业生产甲级不锈钢钢质防火门厂家资质齐全-广东恒磊安防设备有限公司 | 耐腐蚀泵,耐腐蚀真空泵,玻璃钢真空泵-淄博华舜耐腐蚀真空泵有限公司 | 货车视频监控,油管家,货车油管家-淄博世纪锐行电子科技 | 伺服电机_直流伺服_交流伺服_DD马达_拓达官方网站 | 新能源汽车电池软连接,铜铝复合膜柔性连接,电力母排-容发智能科技(无锡)有限公司 | 便携式谷丙转氨酶检测仪|华图生物科技百科 | 潍坊大集网-潍坊信息港-潍坊信息网 | 武汉天安盾电子设备有限公司 - 安盾安检,武汉安检门,武汉安检机,武汉金属探测器,武汉测温安检门,武汉X光行李安检机,武汉防爆罐,武汉车底安全检查,武汉液体探测仪,武汉安检防爆设备 | 肉嫩度仪-凝胶测试仪-国产质构仪-气味分析仪-上海保圣实业发展有限公司|总部 | 岩石钻裂机-液压凿岩机-劈裂机-挖改钻_湖南烈岩科技有限公司 | 飞扬动力官网-广告公司管理软件,广告公司管理系统,喷绘写真条幅制作管理软件,广告公司ERP系统 | 心肺复苏模拟人|医学模型|急救护理模型|医学教学模型上海康人医学仪器设备有限公司 | 精密模具制造,注塑加工,吹塑和吹瓶加工,EPS泡沫包装生产 - 济南兴田塑胶有限公司 | 环氧乙烷灭菌器_压力蒸汽灭菌器_低温等离子过氧化氢灭菌器 _低温蒸汽甲醛灭菌器_清洗工作站_医用干燥柜_灭菌耗材-环氧乙烷灭菌器_脉动真空压力蒸汽灭菌器_低温等离子灭菌设备_河南省三强医疗器械有限责任公司 | 济南ISO9000认证咨询代理公司,ISO9001认证,CMA实验室认证,ISO/TS16949认证,服务体系认证,资产管理体系认证,SC食品生产许可证- 济南创远企业管理咨询有限公司 郑州电线电缆厂家-防火|低压|低烟无卤电缆-河南明星电缆 | 钢骨架轻型板_膨石轻型板_钢骨架轻型板价格_恒道新材料 | 青岛侦探_青岛侦探事务所_青岛劝退小三_青岛婚外情取证-青岛王军侦探事务所 | 丹佛斯变频器-Danfoss战略代理经销商-上海津信变频器有限公司 | 浇钢砖,流钢砖_厂家价低-淄博恒森耐火材料有限公司 | 拉力机-拉力试验机-万能试验机-电子拉力机-拉伸试验机-剥离强度试验机-苏州皖仪实验仪器有限公司 | 喷涂流水线,涂装流水线,喷漆流水线-山东天意设备科技有限公司 | 杰福伦_磁致伸缩位移传感器_线性位移传感器-意大利GEFRAN杰福伦-河南赉威液压科技有限公司 | 新疆乌鲁木齐网站建设-乌鲁木齐网站制作设计-新疆远璨网络 | 水压力传感器_数字压力传感器|佛山一众传感仪器有限公司|首页 | 上海宿田自动化设备有限公司-双面/平面/单面贴标机 | 聚合氯化铝价格_聚合氯化铝厂家_pac絮凝剂-唐达净水官网 | 工业洗衣机_工业洗涤设备_上海力净工业洗衣机厂家-洗涤设备首页 bkzzy在职研究生网 - 在职研究生招生信息咨询平台 | 商秀—企业短视频代运营_抖音企业号托管 | 危废处理系统,水泥厂DCS集散控制系统,石灰窑设备自动化控制系统-淄博正展工控设备 | 进口试验机价格-进口生物材料试验机-西安卡夫曼测控技术有限公司 | 等离子空气净化器_医用空气消毒机_空气净化消毒机_中央家用新风系统厂家_利安达官网 | 体坛网_体坛+_体坛周报新闻客户端 | 储气罐,真空罐,缓冲罐,隔膜气压罐厂家批发价格,空压机储气罐规格型号-上海申容压力容器集团有限公司 | 汽液过滤网厂家_安平县银锐丝网有限公司 |