Hosting on Heroku – How to Host a Discord Bot on Heroku for Free – Discord.py Rewrite Tutorial #5
How to Host a Discord Bot on Heroku for Free – Discord.py Rewrite Tutorial #5
Hosting on Heroku
How to host your discord bot for free using heroku. This tutorial shows you how to host your python bot for free using heroku services. We simply need to setup a few things to heroku, upload our code and turn the bot on!
Text-Based Tutorial:
Heroku:
**************************************************************
WEBSITE:
proXPN VPN:
Use the Code “SAVE6144” For 50% Off!
One-Time Donations:
Support the Channel:
Twitter:
Join my discord server:
**************************************************************
Please leave a LIKE and SUBSCRIBE for more content!
Tags:
– Tech With Tim
– How to host dicsord bot for free
– Hosting discord bot on heroku
– Free discord bot hosting
– Host python discord bot for free
– Python Tutorials
you search:
Hosting on Heroku
How to Host a Discord Bot on Heroku for Free – Discord.py Rewrite Tutorial #5
hey Tim, great video. Note one item is outdated now: the "rewrite" branch became the official branch yesterday, as such i think the instruction you give for the requirements.txt file should include "git+https://github.com/Rapptz/discord.py" not "git+https://github.com/Rapptz/[email protected]"
when i type git init it shows me this : 'git' is not recognized as an internal or external command,
operable program or batch file.
When pushing to heroku, im getting the error "src refspec master does not match any" i've followed the tutorial exactly and even did it for a 2nd time to double check I did it correctly and it's still giving me the error.
App not compatible with buildpack Python error. SOLUTION = ADD .txt to requirements and done
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/bot-test1312.git how do i fix this ?
uhh so everything works for me but the bot doesnt come online.
when i check the logs it says it cant run my file properly. can anyone help ?
what if i have js :c
for those of you that need help wit the error: failed to push some refs to 'https://git…." and are using pycharm… what I did to fix the problem was not get rid of the ".txt" at the end of the requirements folder but used "pip freeze > requirements.txt" in the cmd and deleted all the text in there except the discord.py version. Then just do whatever he did after his failed.
Thank you so much!
just one small stuff….
have you hard coded your discord token on your script?
It is also working easier xD just download github desktop login and make a clone folder from the responsetory within the tool. then you just can drag and drop files into the folder and umpload them to github with the committhing in the desktopapp then just go to heruko and connect your responsenotry by searching like fist 2 letters and then you will find it so select it and then bot should working too
If you are getting the error:
remote: —–> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy…
remote:
remote: ! Push rejected to project-mm-beta.
remote:
To https://git.heroku.com/project-mm-beta.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/project-mm-beta.git'
Try:
In your requirements.txt you have the following line:
git+https://github.com/Rapptz/[email protected]
Change that to "discord.py" or "discord.py==1.3.4"
Worked for me thanks stack overflow user Tin Nguyen.
so like when I say "git init" in cmd, it says "'git' is not recognized as an internal or external command, operable program or batch file."
how do I install git?
i tried pip install git
but that got "ERROR: Could not find a version that satisfies the requirement git (from versions: none)
ERROR: No matching distribution found for git"
8:46
Thank you! This was really helpful and I uploaded a bot I had made myself. You got a sub from me!
7:35
This is for everyone watching this rn, in the Procfile, make sure your worker is "python3 bot.py", because this is a Linux server, I tried it with "python bot.py" for my worker, and it didn't work.
do we need github to use Heroku with git?
I need some help, I check resources and it comes up with web and ECHO, what do I do with them?
This is legit yahoo pipes all over again.
helped alot, thanks man
All the things in the command prompt work for me but when I got to flick the switch on the heroku website to turn on the bot I don't see it there, does anyone know why?
how do i do this with visual code?
Procfile not procfile 🙂
Only 550 hours per month are free… Add a credit card increase to 1000 hours but that is not enough…
Hello! Been following for about a month and love your channel! I'm having some trouble setting up the application. When I insert the command "git push heroku master" it shows that I am enumerating and counting more than 14000 objects while in your video it only shows 7. I also have the error " pathspec 'rewrite' did not match any file(s) known to git.
" and already tried to create a branch named "rewrite" but it does nothing. Does anyone know what it might be the problem?
u didnt tell us to download git ;-;
It says git is not recognized as internal or external command
Thankyou so much for the video. But what to do after free dyno hours on heroku get over.