Host Discord bot in Heroku in Android 1

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

Host Discord bot in Heroku in Android 2

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 ,

Host Discord bot in Heroku in Android 3

Now connect your heroku with github

Host Discord bot in Heroku in Android 4

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

Host Discord bot in Heroku in Android 5

Slide down again and click on enable Automatic deploy

Host Discord bot in Heroku in Android 6

Slide down again and now click on Deploy Branch

Host Discord bot in Heroku in Android 7

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

Host Discord bot in Heroku in Android 8

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

THANKS FOR READING

Table of Contents

Conclusion

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

Leave a Reply

Your email address will not be published. Required fields are marked *