How to host your Discord Bot 24/7 FOR FREE!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this is how you can host your Discord bot to online 24 7 for free so let's go and get started alright so you're going to go ahead and click the link in the description below to get to the silly Dev dot Co dot UK website and once you're here we're going to go ahead and click on join at the top here so the first thing that you're going to actually have to go ahead and do is you're going to go ahead and create an account with a username email and password after you go ahead and create that account it will redirect you to the login page once you're on that login page all you have to do is log in with that account you just created and then you're done now you will be put into the panel right here so basically how this works is you get credit for every five minutes of AFK so if we go over to the balance tab as you can see here I have 365 credits from my AFK time so how this works is for every minute you are on the site you will get five credits so all you have to do is like watch YouTube or do something else and leave this site open in the background and you're just going to get a bunch of credits so this is technically free hosting all you have to do is AFK so once you have enough credits or once you've AFK enough all you have to do is go to the store and click on create server once you're here you can go ahead and give it a name for me I'm going to go ahead and do tutorial server and we can go ahead and do tutorial hosts for a video and then right here we're going to go ahead and give it the CPU RAM and storage I'm just going to leave it as default then we're going to go ahead and leave all the features as default as well once you're going to go ahead and select a node so either USA or UK so I tried the USA one and it's brand new so it's a little bit glitchy so I would recommend just using the UK one for now and it's cheaper as well for the serverness we're going to go ahead and choose coding language and for the server egg that's going to be the language that your Bot is made with so for me that's going to be node.js we can go ahead and click on create here and as you can see it's going to go ahead and create a server and it's going to go ahead and run the installer so just give it a few minutes you can go ahead and reload the page at any time and then once you reload if the installer is finished you will be able to go ahead and customize your server alright so now that your server has actually been created we can go ahead and get our files from the bot and import it into the project so to do that we're going to go over to the desktop and we're going to go ahead and create a new zip folder and I'm just going to go ahead and call this host zip or whatever it doesn't really matter and we can go ahead and actually open this up and we can also go ahead and open up your Bots files so you can go ahead and drag all of your Bots files in here just do not include that node modules because the node modules is going to be imported after if you're using replit or some other online coding program just go ahead and download the files from it and import it into a zip and then you can actually go and put those files within your host so now that you have the zip prepared we can actually open up that host again and we're going to go ahead and drag it over to the side we can go over to files and we can go ahead and drag that host zip into the files right here now that's here we're going to go ahead and click these three dots and we're going to go ahead and click on unarchive and then we can go ahead and click on the host zip and we're actually going to go ahead and delete that from there all we have to do is go ahead and configure a few startup settings and then we'll be set to start so we're going to go over to the startup here and as you can see it's going to have our JS file or our main file so this is going to be the main file in your code project so for me it's going to be index.js so we have to change this to the path that the file is located in so for me it's within the SRC file so we're going to do SRC slash index.js for you it might be something different just make sure you get that path correct so after you do that we should be good to go ahead and actually turn this on so we can head over to our console and we can go ahead and click on start so what it's going to go ahead and do now is it's going to go ahead and download the node modules it's going to import everything from the package.json and it's going to go ahead and get everything prepared so just go ahead and give it some time and then the bot should turn on all right so here we have our first error it's going to go ahead and say that it cannot find module discord.js so it's actually a really really simple fix for this all you have to do is head over to the startup and we're going to go ahead and find your additional node packages and in here just go ahead and put in discord.js so for whatever package you get that error in if you have one at all just go ahead and put that package within the additional node packages now keep in mind you can install multiple at once for example if you're to do.env you could do a space and then the next package name but I'm only going to install discord.js so now we should be able to go back into our console and we can go ahead and click on start again as you can see here I got this error again after putting the discord.js package into our additional packages so to fix this if you continue to get the error just go over to files and just go ahead and click on the cache npm node modules and just go ahead and delete it and then you should be able to go back to the console and go ahead and start it again alright so after making that change the bot actually turned on and one other thing that I did do was I deleted the cache.mpm node modules and I also deleted the packagelock.json and then of course I added the discord.js to the install branch and the additional note packages I basically just did every possible thing that could fix that issue of not having the package installed so if you need to do any of that to make it work feel free to do that but now that the bot has turned on we should be good to go alright so over in the Discord server here as you can see the bot is online this is the exact same bot I put into the host and my computer is completely empty as you can see I'm not running the bot on my own so there's a couple things we need to do when talking about this host the first thing that you need to keep in mind is sometimes the memory is going to max out so what this means is you may need to go over to the store and you may need to go over to resources and you may need to purchase CPU or memory or disk or any of that so to do that you can use your credit that you get by AFK on the site so this is all free if you need that just go ahead and wait on the site until you have a couple more credits and then you should be able to get some more disk memory CPU or any of that the other thing to keep in mind here is that you do have a renewal date down here so after 15 days of creating the server you're going to have to go and click on renew and you will be charged five credits to add 15 more days until your renewal date is over so it's really easy all you have to do is get five credits to renew that server and as you can see you get five credits per minute so it's really really easy to do that so that's you can host your Discord to online 24 7 for free if you do need any help with this go ahead and join the server in the description below and use our help channels one of our coding helpers is actually staff for this host so they should be able to help you out and you might as well just join anyways because this is a pretty good coding community and with that I will see you guys in the next video
Info
Channel: MrJAwesome
Views: 23,882
Rating: undefined out of 5
Keywords: #discord, #discord bot, #discord.js v14, #tutorial, #codeadiscordbot, #discordtutorial, #bothosting, #free, #discordbothosting, #24/7 bot hosting, #24/7 discord bot hosting, #free discord bot hosts, #best free discord bot hosts, #free discord bot hosting
Id: aV1Yb1l0pxo
Channel Id: undefined
Length: 6min 22sec (382 seconds)
Published: Mon Sep 25 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.