If you have these kinds of frustrations, then you definitely came to the right place, as today, we will be going through one of the easiest methods to get free discord bot hosting in 2022. The great thing about them is that they don’t require any advanced coding skills to implement and are entirely free to use so you won’t face any complications in the long run. Without further due, let’s get into it!
1) Using Heroku to set up free Bot hosting 24/7 manually
This is the most common form of free discord bot hosting 2020 used by discord server owners worldwide. It may not be the most straightforward of the options, but it will undoubtedly lead to long-term reliability. So, let’s check it out, shall we?
STEP 1: Setup the GitHub Desktop Version control utility
1) First of all, you need to download the GitHub desktop utility from their official site by clicking here. For those who didn’t know, GitHub is one of the most popular utilities that allow users to interact with the information on the discord server and the local files on the computer. This is how your Bot stays updated in real-time directly from your system.
2) The next step is to create a GitHub account
Once you’re in your profile, click on “Create a new repository,” which will open a new window. In the following section, name your Repository (Ex, Spirit-Bot), change your access to private, and select “Create the Repository.” Make sure not to tweak any further changes.
3) Now that you have created a Repository, the next step is to manage your GitHub desktop application. Within the utility, select “File,” then scroll down to “Clone Repository.” You should see the Github account that you logged in to. So, if you move down, you should know the Repository that you have created. Simply, choose it and then hit “Clone.”
After opening it for the first time, you may not see all the access buttons at the top, so don’t panic!
4) After cloning the dedicated Repository, the next step is to move into the documents folder within your system. Within your folder, you should be able to see the corresponding GitHub folder and then inside the Repository that you’ve just cloned. Following that, open your Bot folder (that you previously created) and transfer/copy all the files to the GitHub folder.
Keep in mind that whatever you put in your Github folder will be transferred to your application. So, make sure to create a fully operating discord bot with valid files before continuing.
5) Open your GitHub desktop in which all your files have been now transferred, add a Summary Name above the “Description” section, and hit “Commit to master.” This name could be anything you want, so feel free to adjust it. Once it’s done, just select the “Publish Branch,” which is present at the top right corner, and your first step of free discord bot hosting no coding is finished.
Publishing your files to the origin repository will take a while, depending on your internet speed and hardware performance.
STEP 2: Manage Your Free discord bot hosting Setup on Heroku
This next step on how to get free discord bot hosting includes managing your Heroku account. For those of you who aren’t familiar with Heroku, let me brief you on it,
So, Heroku is kind of a semi-free cloud hosting platform (Paas) that supports multiple programming languages. You can use it to scale your applications with added convenience. It might be renowned in the industry, but it will more than get the job done when it comes to hosting your discord bot.
1) Firstly, make a Heroku account, if you haven’t already, and login into your profile. Once you’re in the control panel, generate a new “App” by selecting the respective box at the top right corner. Also, make sure to give your specified app a name, which could be anything of your choice.
If you live anywhere outside the United States, try changing the server zone in the Heroku App to Europe.
2) As you’re on the new page, you want to connect to GitHub by clicking on the respective logo. Now search for your “Repository Name” in the below box and hit enter. Eventually, you will see that your GitHub account is connected to Heroku.
One of the things to note is that you should activate the “Automatic Deploys”, which will ensure that your Bot automatically enables itself every time you set up it from GitHub. Similarly, it will make adding new commands much easier in the long run.
3) Next, move to the “Settings” and scroll down until you see, Add Build packs. This will help you implement Node.js, so make sure to select it and then “Save Changes.” Along with that, try to reveal Config Vars. Here, you need to copy and paste the following code DISCORD-BOT-TOKEN and the respective token value (which could be found in the Discord Developer portal) and Hit Add.
If you can’t find your token, then it’s already within your discord-bot files. But if you face any further confusion, check out this tutorial!
4) Now move onto the “Deploy section” and try to find and select “Deploy Branch,” located below. After that, wait for the files to be deployed. Once it’s done, you will see green checkmarks across the code, so get to the Resource Tab and refresh the page.
If you face any errors in the deployment, try to re-follow all the steps.
STEP 3: Make a Procfile And Make Changes in its Settings
1) Subsequently, move back into your official Bot folder, right-click and make a new text document. Keep in mind that the name should be “ProcFile,” as Heroku uses this format to read it. Similarly, remove the “txt” before finalizing its name. After that’s done, right-click on your File and Edit it through the Notepad ++ utility.
Those who can’t see the file extension, make sure that hidden names and Filename extensions are enabled.
2) Now type in Worker: node ./src. Bot.js in the Procfile, which will help in running our discord bot. Then go to File, then click on Save All for redeeming all the changes.
3) Open your GitHub desktop app once more and insert “Procfile Added” into the appropriate directory. Simply select “Connect to master” and then “Publish to origin” after that.
STEP 4: Finalize Your Bot in Heroku And Make it online
1) Again, move back to your Heroku dashboard and open the Resource tab. Additionally, refresh the page until you see the Worker that we’ve just implemented. Also, make sure the Worker tab is activated and the little button is turned on by clicking the pencil bar.
2) Following that, pick “More” and then “View logs” from above to see your free discord bot is starting up. You will observe that your Bot has been booted up and is up and running on Heroku.
3) To double-check its implementation, go to your discord server, in which you will notice that your Bot is currently active. Test any bot commands like -tempmute in your channel and visualize the results! This Bot will be online 24/7 and with decent response and ping time.
2) Using Something.Host to Automatically Configure free discord.js bot hosting
If you are looking for one of the easiest ways to host your discord bot online, I highly recommend using this method. Not only is it straightforward, but it is also relatively quick so that you won’t face any major complications throughout the procedure.
Unlike Hosting services such as Heroku, Something.host is reliable. They offer industry-leading setup for their servers protected by any kind of active or passive DDoS attacks. On top of that, their console is straightforward to understand and use, which will ultimately give you additional peace of mind.
STEP 1: Create an Account on Something. Host & manage your free plan
1) First thing first, go to Something.Host an official website and create your account by clicking on the respective tab. The registration process is also quite simple, and once you verify your account (through Email), you will be directed to your console.
2) Once you’re logged in, start the process by clicking the “Services” and then “Order New Service” tab. You will be able to see hosting categories such as Minecraft and Rage.MP, so simply select the Discord bot service and click Continue to Service. Similarly, choose your free plan and then Add to the cart logo.
Compared to the competitors, the hosting plans of Something.host are pretty cheap, so if you have extra bucks to spare, it’s worth considering their reasonable offers.
3) After your subscription plan is selected, move to the address section and fill out the reliable information. It’s worth mentioning that you don’t need to add any specified information such as a billing address nor a mobile phone number.
So simply type in your name, select your region, choose the “Account Balance” as billing method and Hit “PLACE ORDER.” This will redirect you to the customer page, in which you need to select again “PAY ORDER.”
4) Now refresh the page until you see your Free 27/7 discord hosting service tab. Click it to slide it down and then enter the “Remote Access.” It will contain your FTP and SSH information, which will be helpful later in the process.
STEP 2: Install FileZilla & Connect it to the Hosting Server
1) In this step, you have to download and install the FileZilla client to implement FTP access. So, click here to transfer its setup to your operating system. Once you’re done, simply launch the FileZilla utility.
2) Before you move on, click on Edit and then the Settings tab, in which you will see Passive mode under the FTP option. At once, make sure that you’ve checked the “Fall back to active mode.” This will allow you to eliminate any login problems that are susceptible to using an external IP address.
3) Again, open your Something.host control panel and within the “Remote Access” tab, copy and paste all credentials like Port, username, and host onto the FileZilla desktop application’s Quick connect account. After you’re done, click the Quick Connect button and select Ok to allow access. This will link your system to the hosting service directly.
4) Soon after that, create a new folder/directory within the FileZilla by left-clicking in the empty tab. Then, find the Bot that you have created for Discord in your system and drag and drop all the files in that newly created folder. Note that files like “.git” and “node_modules” aren’t needed at the moment, so leave them.
As soon as you do this, FileZilla will start transferring your Bot’s data into the cloud servers of the hosting service, which on average, may take a while. So, wait for the progress notification.
STEP 3: Adjust the Discord-bot Console within Something.Host & Restart your Server
1) In the end, open your console once more and enter the “Configuration” tab. Now change the programing language to the latest version of Node.js and click on “Save configuration.” Although, you can also adjust the coding input according to your desired preferences.
2) Now, enter the “Console” section of the control panel and then simply click on the Stop button to terminate the running process. Once you complete this, select the Rebuild option and then wait for some time before choosing the Start button. It will rebuild everything on the server for you since you’ve just added newer files.
3) After you’ve gained access to developer mode, all you have to do now is add some codes. So first of all, type in cd ./Test(folder name that you had specified) and press Enter. Again, put node . (hit enter key) and then npm i and let it run. Finally, insert node . under the same slot, and your Bot is now online!
Q1, Is it Ok to host a discord-bot free online?
If you are currently on a tight budget but want the prime features of a discord bot in your server, then yes, it’s best to host it online on semi-free services like Vultr VPS. Although, keep in mind that its performance will be limited.
Q2, Do discord bot remain online 24/7?
It depends on the type of Bot you use and the hosting provider you have currently incorporated. But yes, most current bots remain online 24/7 as long as there aren’t any downtimes associated.
Q3, Is it possible for discord bots to stream?
Some bots are fully compatible with the “Go Live” API, which allows them to stream services like Twitch.