Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 3.63 KB

Heroku_Atlas_Guide.md

File metadata and controls

61 lines (52 loc) · 3.63 KB

🖤️ WhatsApp Botto: Xre 🖤️

🤖️ Heroku Deployment Guide 🤖️

Pre-requisite

  • 🌐️ Internet 🌐️️
  • 🧠️ Brain 🧠️
  • 🎵️ Music 🎵️

Notice!

  • I'd recommend using 🦊️ the Firefox browser
  • I'd recommend disabling extreme ad-blocking extension or settings as it may cause some sites to break

💚️ Let's set up Mongo Atlas first 💚️

  1. Go to MongoDB cloud atlas

  2. Sign up if you don't have an account already or log in if you have one already. PS: If you don't want to use your email, go to https://temp-mail.org/en/ and generate a temporary disposable email address uwu)/

  3. Create a new cluster on Mongo Atlas. [It takes time, so don't worry]

  4. After creating a cluster, click on the 'CONNECT' button on the cluster which you've created.

  5. On Setup connection security, I'd recommend you to add 'Your Current IP Address' for security concerns but if you are not willing to go through a little bit of pain, then simply add 'Access from anywhere. Also, you can change this anytime by opening your "IP Access list tab".

  6. Then, create a database user, fill up the name and password and MAKE SURE TO REMEMBER THEM.

  7. Click on the "Choose a connection method" and then click on the "Connect Your Application" option.

  8. Finally, on the "Connect" tab select "Nodejs" as DRIVER with "3.6 or later" in VERSION.

  9. Copy the connection string that is provided below and paste it somewhere and replace with 'the password you added while creating database user', also make sure to remove '< >' these from . This will be your MONGO CLUSTER URI.

Example [Mongo Atlas Cluster URI]

mongodb+srv:https://NekoDaKamiSama:[email protected]/myFirstDatabase?retryWrites=true&w=majority

  1. That's it for this section, please proceed down below.

💗️ Steps to deploy your own Botto on Heroku cloud

  1. Whatsapp-Botto-Xre - 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
    BOTNAME Xre
    PREFIX !
    CRON 'null'
    SESSION_ID Any text you want but make sure to remember and don't share it
    ADMINS
    MONGO_URI YOUR CLUSTER URI
    EIF https://express-is-fun.herokuapp.com/api
    ADMIN_GROUP_JID

BOT_NAME The name of the Bot
PREFIX The Prefix of the Bot
CRON Cron schedule for clearing all chats (Default: "0 */6 * * *". Every 6 Hours). change this field to null if you don't want to schedule. Learn More
SESSION_ID A string to keep track of your session. ADMINS The phone numbers of users who you want to be the bot's Admins separated by a comma and must the numbers must be in the following format: [cc][number]. eg: 919744****** MONGO_URI is the Connection URL to your DB 5. 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 6. After it builds, click on the "View" or "Open App" 7. Authenticate By Providing Your SESSION_ID and a QR Code Will Show Up 8. 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 9. Profit!

😼️ Enjoy and make sure to study!

💜️ Support us on:

💰️ Patreon