Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (25 loc) · 1.84 KB

Heroku-Hosting-Guide.md

File metadata and controls

29 lines (25 loc) · 1.84 KB

WhatsApp-bot Heroku Deploy Guide

⚠ Requirements

  • A cluster URI of the MongoDB. You can get it by following the steps given here

Pre-requisite

  1. WhatsApp-bot - Go there
  2. Scroll down a bit and you will see the "Deploy To Heroku" button in purple color (sorry if you are color blind)
  3. Click on it and login or sign up for Heroku
  4. Enter the following fields
    KEY VALUE
    NAME NAME_OF_THE_BOT
    PREFIX PREFIX_OF_THE_BOT
    SESSION BOT_SESSION
    MODS BOT_ADMINS_NUMBER (should be seperated by a comma and a space)
    MONGO_URI YOUR_CLUSTER_URI
  • PREFIX: Prefix of the bot
  • BOT_NAME: Name of the bot
  • MONGO_URI: A secret String for MongoDB connection. (Required)
  • MODS: Number of the users who should be the admins of the bot (should be in international format without "+" and multiple numbers should be separated by a comma and a space). Example - 1234567890, 91245670325 (you shouldn't add "@s.whatsapp.net" at the end of each numbers)
  • SESSION: Session of the bot
  1. Wait for the building to finish, you should always keep an eye on log messages, you can find log messages in the Dashboard -> More -> View logs.
  2. After it builds, click on the "View" or "Open App".
  3. Authenticate By Providing Your SESSION_ID and a QR Code Will Show Up.
  4. Open WhatsApp on your phone -> Click on the 3 Dots on the top Right -> Click on WhatsApp Web -> Click on "Link a Device" and scan the QR from the previous step.
  5. Your heroku app can fall asleep so for keeping it awaken add your app to (Kaffeine)
    . It pings your Heroku app every 30 minutes so it will never go to sleep.