Hosting a Python Discord Bot for Free with Fly.io
Vložit
- čas přidán 24. 07. 2024
- Hosting a Discord Bot made with Python on Fly.io
❤ Subscribe: bit.ly/SubscribeDPT
See my previous video on bot hosting here: • How to Host a Discord ...
As Heroku is no longer going to be free after November 28, 2022, I am sharing another way to host a Discord bot 24/7 for free.
You will be able to host any kind of bot on Fly.io with no limitations by following the steps in this video. You can also optionally attach a PostgreSQL database for storing data.
👨💻 Source Code
Dockerfile - github.com/DenverCoder1/tutor...
fly.toml - github.com/DenverCoder1/tutor...
💬 Dev Pro Tips Discussion & Support Server
/ discord
📜 Fly Documentation
fly.io/docs/
📜 Fly CLI Documentation
fly.io/docs/flyctl/
📜 Discord.py
Documentation - discordpy.readthedocs.io/en/l...
Discord.py Server - / discord
📜 Nextcord
Documentation - nextcord.readthedocs.io/en/la...
Nextcord Server - / discord
📓 Python Discord Bot Template
github.com/DenverCoder1/disco...
📺 In this video:
0:00 - Introduction
0:20 - Installing the Fly CLI and Account Setup
1:18 - Setup the Code, Launch, and Deploy
4:08 - Setting Secrets
5:13 - Fly Documentation
6:12 - Conclusion
🐍 More Discord Bot Tutorials
• Building Discord Bots ...
💻 More tutorials
• Tutorials
🙋♂️ Find me on other channels
Discord 🗨️ bit.ly/dpt-discord
Twitter ✍ / denvercoder1
Github 👨💻 github.com/DenverCoder1
Sponsor 💞 github.com/sponsors/DenverCoder1
Buy me a coffee ☕ ko-fi.com/jlawrence
💖 SPONSORS 💖
Get your username or a link to your channel here by sponsoring on GitHub
▶ github.com/sponsors/DenverCoder1
🎁 GET FREE STUFF WHILE SUPPORTING MY TUTORIALS
► bit.ly/jlawrencepromos - Jak na to + styl
I was actually searching for some materials on hosting bots for free. Thank you!
Thank you so much for the tutorial! You’re the best!
Thank you so much for the video. Is a .dockerignore file recommended to ignore files that's not to be included in the container?
how do i open .venv in visual studio
does it work for a NodeJS discord bot too?
They want payment info on file ??
Great Tutorial! Although I do have a audio bot that is able to enter the chat but won't play the audio file. Is there an extra step I have to take?
did you find a workaround for this?
Hello, I almost deploy my bot, but unfortunately I got an ERROR failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c pip install -r requirements.txt]: exit code: 1. Any recommendations?
I have the same problem have you found the solution?
Thanks, i was looking for a place to host my bot now that heroku is ending the free tier. What are the actual limitations of the free plan here with regards to a discord bot? like heroku was only able to keep it up for 550 hours per month.
Seems to be unlimited time for up to 2 bots. They recently made changes to their pricing page (diff: github.com/superfly/docs/commit/0a9441d ), so it seems a bit less clear now, but it should still be possible. Not sure if they are requiring billing info now (they weren't when I signed up).
I got my bot up and running without payment info. The only caveat here seems to be 256mb of ram, but its still more than enough for a discord bot. Looks like it was always a better option than heroku
didn’t work
turn up volume please
Please make a Twitter bot video
Thank you so much! i mean THANK you really thank you, so thank you soo much thanks yes thank you so much ok really thank you thank thnak you!!!
how do i fix this?
Scanning source code
Detected a Python app
Using the following build configuration:
Builder: paketobuildpacks/builder:base
bruh it's not free anymore
It's still free. Shortly after I made the video, they started requiring a payment method, but it won't charge it if you are only using the free allowances
@@DevProTips I think it's not free anymore, they wrote that I have to add my credit card or buy credits($25)
fly io asks for credit card information regardless of the plan(for human verification), put this in your description
Hello, did you solve this problem. I have the same and I'd be happy if you help me with it
no, flyio will ask for payment for human verification no matter what
Is there a way i can contact you twitter or ig