Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 1.86 KB

Self-Hosting.md

File metadata and controls

77 lines (61 loc) · 1.86 KB

Allen Bot Whatsapp MD ❤️

How to run on your own hosting

⛵ Prerequisites

🍀 Installation

Run the following code to clone the repo

> git clone https://github.com/Paiiss/bot-wa.git
> cd bot-wa

Run this to install the depencencies

> npm i

✍ Configuration

Edit the config in the app.json file (already contains a description for each key)

"env": {
        "MONGODB_URL": {
            "description": "Mongo DB url (required)",
            "value": "mongodb+srv://allen:[email protected]/wa-bot"
        },
        "PREFIX": {
            "description": "Prefix of bot",
            "value": "!"
        },
        "LOLHUMAN_KEY": {
            "description": "LoL Human Apikey (https://api.lolhuman.xyz/)",
            "value": "apikey"
        },
        "GROUP_ID": {
            "description": "For send bot report",
            "value": "6285805609094-1635319627@​g.us"
        },
        "BOT_NAME": {
            "description": "Bot Name",
            "value": "Allen Bot"
        },
        "TIME_ZONE": {
            "description": "Time Zone Bot",
            "value": "Asia/Jakarta"
        },
        "FOOTER": {
            "description": "Footer of bot",
            "value": "AllenBot • Paiiss"
        },
        "LINK_GROUP": {
            "description": "Link Your Group Support",
            "value": "https://chat.whatsapp.com/CktCFlTbTiMLq5K4fgIidd"
        }
    }

💻 Running

npm start

Running the above command will run the bot process, the Qr code will come out in the terminal the first time it is run

🤡 Don't want the hassle?

Set up on Heroku