Host Discord bot in Heroku in Android

If you jump it to this bot then you should check our recent post so you can understand how to create bot in android – CLICK HERE

First Go and create your Github account if you dont have and create Heroku account also, i am not gonna show you how to create account in it. After creating the account follow the steps which are given below.

Go to Github and create new repository and give it a name of that repository, Don’t forget to make it private and click on Initialize The Repository and click on Create repository

Now create a file with name package.json and paste the code which is given below

  "name": "magsj",
  "version": "6.9.9",
  "description": "my bot",
  "main": "index.js",
  "scripts": {
    "start": "node index.js",
    "test": "echo \"Error: no test specified\" && exit 1"
  "author": "maxme",
  "license": "MIT",
  "dependencies": {
   "discord.js": "latest"


Now save it and create one more new file with name Procfile and paste below code

worker: node index.js

Now save this also and click on upload file and locate your bot folder from android storage and upload index.js and package-lock.json one by one. After that open heroku and craete new app with any name you like then create it ,

Now connect your heroku with github

After you connect then slide down and type your repository name and connect it

Slide down again and click on enable Automatic deploy

Slide down again and now click on Deploy Branch

After that it will process and it will show screen like this –

At last Go to configure dynos and disable start dyno and enable worker: node index.js


Table of Contents


Thanks for reading this post if you are not able to host your bot please watch our YouTube-video – CLICK HERE TO WATCH THE VIDEO.

Related Posts

Written by Senpai

"This may be a virtual world,but I feel more alive here then in the real world"

Leave a Reply