Hosting a Python Discord Bot for Free with Fly.io

Sdílet
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

Komentáře • 25

  • @mioszk.8759
    @mioszk.8759 Před rokem +3

    I was actually searching for some materials on hosting bots for free. Thank you!

  • @immortalsun
    @immortalsun Před rokem

    Thank you so much for the tutorial! You’re the best!

  • @arun.sekher
    @arun.sekher Před rokem

    Thank you so much for the video. Is a .dockerignore file recommended to ignore files that's not to be included in the container?

  • @swanny4802
    @swanny4802 Před rokem

    how do i open .venv in visual studio

  • @LordRixuel
    @LordRixuel Před rokem

    does it work for a NodeJS discord bot too?

  • @Gitago
    @Gitago Před rokem +1

    They want payment info on file ??

  • @warpmaster7
    @warpmaster7 Před 7 měsíci

    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?

  • @hanna9686
    @hanna9686 Před rokem +1

    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?

    • @jeez123
      @jeez123 Před 7 měsíci

      I have the same problem have you found the solution?

  • @ayaan7031
    @ayaan7031 Před rokem +1

    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.

    • @DevProTips
      @DevProTips  Před rokem

      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).

    • @ayaan7031
      @ayaan7031 Před rokem

      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

  • @sethp9509
    @sethp9509 Před 6 měsíci +1

    didn’t work

  • @Blokiotcom
    @Blokiotcom Před 10 měsíci

    turn up volume please

  • @aquasplash545
    @aquasplash545 Před rokem

    Please make a Twitter bot video

  • @slowpoke2172
    @slowpoke2172 Před rokem

    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!!!

  • @swanny4802
    @swanny4802 Před rokem

    how do i fix this?
    Scanning source code
    Detected a Python app
    Using the following build configuration:
    Builder: paketobuildpacks/builder:base

  • @orionmusic3190
    @orionmusic3190 Před rokem

    bruh it's not free anymore

    • @DevProTips
      @DevProTips  Před rokem

      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

    • @hanna9686
      @hanna9686 Před rokem

      @@DevProTips I think it's not free anymore, they wrote that I have to add my credit card or buy credits($25)

  • @atharvapise
    @atharvapise Před rokem +1

    fly io asks for credit card information regardless of the plan(for human verification), put this in your description

    • @hanna9686
      @hanna9686 Před rokem

      Hello, did you solve this problem. I have the same and I'd be happy if you help me with it

    • @atharvapise
      @atharvapise Před rokem

      no, flyio will ask for payment for human verification no matter what

  • @TatsumiDesu
    @TatsumiDesu Před rokem

    Is there a way i can contact you twitter or ig