If not Glitch, what other free service can I use to host a Discord bot?

  1. Heroku’s free tier gives 550 hours per month, which is ~18 hours per day. That would fall short if you wanted a service up 24/7 for the whole month.
  2. Heroku doesn’t have built in persistent storage. You’d have to sign up for a database service or something on top of that, which is an extra bit of hassle. Plus, you have to fit all your state through whatever fiddly API that database service uses, which is additional work.
5 Likes

If you know your way around how to manage actual servers, I recomend going with this organization that helps people get free servers to host their projects. Though they are free, and will be able to host your projects on a REAL VPS, they do have a strict rules and renewal (still free) system for the VPSes that may be hard to get used to. They also have online coding classes, coding support, and much more. Here’s their Discord server which tells you how to get started.

7 Likes

I now have “vps, rdp” how can I convert it for hosting.

I was planning for the paid tier and asked on the forum if in the paid plan, glitch would be on all the time. I received a negative answer saying all the servers would be affected irrespective of the plan.

The projects i need to work on need to working 100% during the daytime and on weekdays. Heroku’s free tier has worked brilliantly with no issues the past month. If i need more hours i need to just add a credit card.

I think if we pay we need reliable service. I would be billing my client for the hosting and for sure people would not pay if the hosting is so unreliable and also since few months.

You could git pull your project

ahahahaha sorry, i could have made that clearer :grimacing: but i see this was answered above

2 Likes
  1. You can pay $7 per month for a hobby plan for unlimited hours per month (comparable to glitch boost’s pricing)

  2. Who told you that? I have an sqlite database on heroku. I literally transferred my entire project from glitch to heroku and it worked perfectly.

It’s just documented as how Heroku works. I Googled around just now and found this reference: https://devcenter.heroku.com/articles/active-storage-on-heroku#ephemeral-disk

Heroku has an “ephemeral” hard drive, this means that you can write files to disk, but those files will not persist after the application is restarted.

Dunno if there’s a better source for it than this one buried in something rather Ruby-specific though.


edit: oh here it is https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem

During the dyno’s lifetime its running processes can use the filesystem as a temporary scratchpad, but no files that are written are visible to processes in any other dyno and any files written will be discarded the moment the dyno is stopped or restarted.

One of the benefits of self-hosting is it is really only a one time payment for a machine such as a Raspberry Pi. While it may take a while to configure and set up, it will be worth it in the long run if you website or bots sees only a small(ish) amount of traffic.

4 Likes

I have a pi 4 setup with my bots and a web server and its 100% worth it

4 Likes

You can Set up a Script to Ping or Boost your Project so it Stays Online 24/7
Other than That I heard you can Use heroku or Repl it but i turned away since it was Much more difficult to Set up My Discord Bot Remember if you manually ping your Project and Have Glitch-keep-alive Added your Project will Stay Up for 12 Hours

If anyone is just now reading this, here is a great guide:

4 Likes

@anon43649539 How have you set up multiple bots on one system? Or are they all controlled via one javascript/nodejs instance? Maybe DM the answer as it may be a little off topic :joy:

1 Like

You could use something like https://npm.im/pm2 to run multiple Node.js processes at once.

2 Likes

Try using repl.it
It works amazing!

1 Like
1 Like

Morning! To answer the question, as @anon43649539 said. There are no Good free hosts around, everything has their own catches. Heroku for me is flawless but you can only host 1 project at max to run for a month. If anyone says repl.it again, it’s not gonna give you a private instance. Vercel? Maybe but it’s build process is complicated. g i t h u b a c t i o n s? Not a good idea as it also has limits for the maximum runtime hours of workflows.

Is is really best for you to yknow, get a server, a VPS. Its easier that all of the above once setup. You’ll never know when the services listed above will change direction since people are flocking to use up their resources. And its free.

3 Likes

Thanks for all the suggestions guys, I have been hosting my bots locally and have encountered little to no problems.

1 Like

I know that falixnodes do good bot hosting and it is easy to setup, so I recommend them as they are good and free!

2 Likes

Please do not bump threads. It was already solved.

4 Likes