Requirements :
- Heroku account
- Heroku CLI
- Git
Download and install git from (https://git-scm.com/downloads)
Your bot will be deployed on heroku but still you need to install heroku locally to scan QR code
-
Create account on heroku. (https://signup.heroku.com/)
-
After login on heroku dashboard create an app on heroku (https://dashboard.heroku.com/apps)
-
In the 'Resources' tab search for 'Heroku Postgres' in Add-ons and add it to your heroku app.
-
In the 'Deploy' section download Heroku CLI or from (https://devcenter.heroku.com/articles/heroku-cli#download-and-install)
- After downloading and installing Heroku CLI in your system login to heroku cli using
heroku login
in command prompt or powershell. - Add ffmpeg (for sticker support) in your heroku app using
heroku buildpacks:add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git -a <your-app-name>
- After adding ffmpeg now add 'Heroku Buildpack for Node.js' using
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git -a <your-app-name>
- Now download or clone the
Blender
repo from (https://github.com/crysosancher/Blender2.0) - Now enter in
Blender
directory usingcd Blender
in command prompt or terminal. - Now init the git using
git init
- Create the remote region using
heroku git:remote -a <your-app-name>
- Now deploy the repo in your heroku app using :
git add .
git commit -am "first commit"
git push heroku master
- Now after the deploy process is completed use
heroku logs -a <your-app-name> --tail
to get real time logs from heroku app. - In real time logs it will automatically ask you for login using qr code just simple scan the qr code using your whatsapp web section, and you are done.
- Scan QR code with you phone. done!
Commands | Alias | Description |
---|---|---|
-blend |
Shows buttons | |
-list |
Open whole pannel of commands | |
-help |
-acmd |
Display help message |
-add |
- | Add member to group |
-kick |
-ban, -remove |
Remove member from group |
-promote |
- | Make member admin in group |
-demote |
- | Remove member from admin in group |
-rename |
- | Change group subject |
-chat <on/off> |
- | Enable/disable group chat |
-link |
-getlink, -grouplink |
Get invite link of group |
-joke Categories |
Get a random joke or by Categories | |
-sticker |
- | Create a sticker from different media types |
-removebot |
- | Remove bot from group |
-source |
- | Get the bot source |
-yt <YOutube Link> |
- | Download youtube videos |
-yta <YOutube Link> |
- | Download youtube audios |
-idp <InstaHandle> |
- | Download Insta profile picture of your crush 😜 |
-insta <InstapostUrl> |
--i |
Download Insta media |
-song <song name> |
- | Download song by just name! |
-stock <stock name> |
- | Get latest stock price |
-delete |
- | Delete the bot message |
-warn |
- | Warn the user |
Explore more by using it eg:Get to know your Horoscope,news and a lot more fun.
Since heroku uses:- Dyno sleeping in which if an app has a free web dyno, and that dyno receives no web traffic in a 30-minute period, it will sleep. In addition to the web dyno sleeping, the worker dyno (if present) will also sleep. and if a sleeping web dyno receives web traffic, it will become active again after a short delay (assuming your account has free dyno hours available) You can use (http://kaffeine.herokuapp.com) to ping the heroku app every 30 minutes to prevent it from sleeping.
Create a .env
file for enviromental variables in local directory with following values without quote
PORT=8000
DATABASE_URL = "get-from-heroku-dashboard"
DEEPAI_KEY= "get-form-deepai.com/api"
REMOVE_BG_KEY="get-from-remove.bg"
Get value of database_url from Heroku dashboard > settings > reveal config vars
Due to busy schedule this repo is now being maintain by