-
-
Notifications
You must be signed in to change notification settings - Fork 21
How to deploy Sukuna Bot
Team Whats Bot edited this page Jul 20, 2023
·
2 revisions
- Fork Main Repo
- Create a MongoDB URL. Need help? Watch this short 1 minute Video Guide for MongoDB URL.
- Click on
Deploy to Repl.it
button (For those who didn't modified bot.
). In other case (For those who modified bot.
) edit README.md file and chage the repo link of Repl.it deply button fromhttps://github.com/Fantox01/Atlas-MD
to your fork URLhttps://github.com/<Your GitHub Username>/<Your Atlas fork repo name>
. - After cloning is done in Repl.it go to
Secrets
in your Repl.it project and put these values (Mandatory).
KEY | VALUE |
---|---|
MODS | Phone numbers in this format (918101187876 ,925897863489 ) without + or SPACE . |
MONGODB | Your MongoDB URL |
SESSION_ID | Any random value (EX: gwfdrte5678 ) and keep it copied . |
PREFIX | Any single special character except @ (Ex: . or / or * or , etc. ) |
TENOR_API_KEY | Your tenor API key if you have. Or use this public one: AIzaSyCyouca1_KKy4W_MG1xsPzuku5oa8W358c
|
- Next click on
Green Play button
in Repl.it to start bot installation. - After it's deployed an webpage should appear just put your Previously copied
Session ID
and click onGet QR
. - Scan the QR from WhatsApp ---> Linked devices ---> Link a device.
- After connecting come back to Repl.it and copy that Website (Webview) link from Repl.it.
- Next create a UptimeRobot account and add that copied lin kas an
HTTPS
monitor in UptimeRobot. - UptimeRobot will prevent Repl.it's auto sleep.
- If you are having issues follow Repl.it Deploy Tutorial.
- Fork Main Repo
- Create a MongoDB URL. Need help? Watch this short 1 minute Video Guide for MongoDB URL.
- Click on
Deploy to Heroku
button (For those who didn't modified bot.
). In other case (For those who modified bot.
) edit README.md file and chage the repo link of Repl.it deply button fromhttps://github.com/RSxGamerz/Sukuna-Bot
to your fork URLhttps://github.com/<Your GitHub Username>/<Your Atlas fork repo name>
also got toapp.json
and changeWebsite
ansRepository
link from my link to your link. Then click onDeploy to Heroku
button. - Then put these values in environment variables accordint to instructions (Mandatory).
KEY | VALUE |
---|---|
MODS | Phone numbers in this format (918101187876 ,925897863489 ) without + or SPACE . |
MONGODB | Your MongoDB URL |
SESSION_ID | Any random value (EX: gwfdrte5678 ) and keep it copied . |
PREFIX | Any single special character except @ (Ex: . or / or * or , etc. ) |
TENOR_API_KEY | Your tenor API key if you have. Or use this public one: AIzaSyCyouca1_KKy4W_MG1xsPzuku5oa8W358c
|
- Next start deploy and wait for 3-4 minutes.
- After it's done click on
Manage App
. - Next go to
Recources
then turn onWeb: npm start
and disable other oneIf there is any other button.
- After that go to More ---> view logs and wait for qr to appear.
- When you see broken QRs are appearing chick on
Open app
and put your Previously copiedSession ID
and click onGet QR
. - Scan the QR from WhatsApp ---> Linked devices ---> Link a device.
- Fork Main Repo
- Create a MongoDB URL. Need help? Watch this short 1 minute Video Guide for MongoDB URL.
- Click on
Deploy to Railway
button (For those who didn't modified bot.
). If you modified bot and want to deploy your modified version in Railway then that button will not help you. Go to Railway website and deploy github repo from there manually. - Those who are deploying through button: Put all necessary details there according to instructions given there.
- Those who are deploying manually from Railway website put these
Enviroment Variables
before start deploying ( Mandatory).
KEY | VALUE |
---|---|
MODS | Phone numbers in this format (918101187876 ,925897863489 ) without + or SPACE . |
MONGODB | Your MongoDB URL |
SESSION_ID | Any random value (EX: gwfdrte5678 ) and keep it copied . |
PREFIX | Any single special character except @ (Ex: . or / or * or , etc. ) |
TENOR_API_KEY | Your tenor API key if you have. Or use this public one: AIzaSyCyouca1_KKy4W_MG1xsPzuku5oa8W358c
|
- 5-6 minutes later when Deploy is completed click on that generated domain to go to QR page.
- just put your Previously copied
Session ID
and click onGet QR
. - Scan the QR from WhatsApp ---> Linked devices ---> Link a device.
- If you are having issues follow Railway Deploy Tutorial.
- Fork Main Repo
- Create a MongoDB URL. Need help? Watch this short 1 minute Video Guide for MongoDB URL.
- Click on
Deploy to Railway
button (For those who didn't modified bot.
). If you modified bot and want to deploy your modified versionI'm sorry to say as Koyeb works through Quay.io hosted docker so you can't deploy your modified version in fully 100% working state.
Though you can deploy manually your Github repo in Koyeb but in that case bot's 100% commands will not work. - Those who are deploying through button: Put all necessary details there according to instructions given there (Don't forget to change MongoDB URL an put your URL).
- Those who are deploying manually from Koyeb website put these
Enviroment Variables
before start deploying ( Mandatory).
KEY | VALUE |
---|---|
MODS | Phone numbers in this format (918101187876 ,925897863489 ) without + or SPACE . |
MONGODB | Your MongoDB URL |
SESSION_ID | Any random value (EX: gwfdrte5678 ) and keep it copied . |
PREFIX | Any single special character except @ (Ex: . or / or * or , etc. ) |
TENOR_API_KEY | Your tenor API key if you have. Or use this public one: AIzaSyCyouca1_KKy4W_MG1xsPzuku5oa8W358c
|
- 10 minutes later when Deploy is completed click on that generated weblink to go to QR page.
- just put your Previously copied
Session ID
and click onGet QR
. - Scan the QR from WhatsApp ---> Linked devices ---> Link a device.
- If you are having issues follow Koyeb Deploy Tutorial.
- Download Updated code from Main GitHub Repo or Download from your Forked Repo.
- Extract the
.zip
and open Vs code / Cmd / Powershell / Terminal in that directory and give thesse following commands one-by-one: - Rename
.env.example
to.env
and fill in the required details in.env
file andconfig.js
(Mandatory).
npm i
npm start
- To get new QR if you logged out from the WhatsApp linked device section go to
.env
file and changeSESSION_ID
to any random string and save it by clicking onCommit Changes
.
- Node.js
- Git
- FFmpeg ( for Windows or for Linux or for Mac )
- Libwebp (Not necesary for Windows).
Note: If you don't pre-install these before CMD / VS code Installation bot will not start!