MIKO BOT is a Node.js-based WhatsApp chatbot powered by Puppeteer and whatsapp-web.js. It allows you to automate interactions with WhatsApp Web, enabling various automated tasks and responses.
- WhatsApp Automation: MIKO BOT can automate tasks such as sending messages, images, and stickers to WhatsApp contacts or groups.
- Dynamic Responses: Customize your bot to provide dynamic responses based on user inputs or predefined conditions.
- Message Handling: Handle incoming messages, process them, and respond accordingly.
- Sticker Handling: Convert and create sticker with bot.
- Chatbot AI: Customize AI replies from the bot.
- More?: Just try example bot and you can explore all features.
- Example Bot: Miko Bot I wont be running the bot from now on, but you can try the repo
Follow these steps to set up and run the MIKO BOT on your local machine or deploy it to a cloud platform like Heroku.
-
Clone the Repository:
git clone https://github.com/awesome-tofu/miko-bot.git
-
Change the Directory:
cd miko-bot
-
Install Dependencies:
npm install
-
Set Environment Variables:
sample: sample.env
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD (required), if you are running on windows remove it PUPPETEER_EXECUTABLE_PATH (required), if you are running on windows remove it MONGODB_URI (required) (get it from https://cloud.mongodb.com/) DEFAULT_LANGUAGE (optional) BOT_NUMBER (required) OWNER_NUMBER (required) NUMVERIFY_KEY (optional) CHATBOT (optional) (set default chatbot true/false) INSTALLATION_ID (optional) (get truecaller installation ID from https://replit.com/@E-Venture/truecaller-installation-id?v=1) STICKER_NAME = tofu (optional) (sticker name of .sticker command) AUTHOR_NAME = miko (optional) (pack/author name of .sticker command)
-
Start the script:
npm start
-
Scanning the QR code:
Open the link provided by the deployment platform OR if you are running on local platform open http://localhost:3000/
-
Command Usage:
Once the bot is running, you can start sending commands and messages to it via WhatsApp.
Command Description .start
Command to start the bot. .eval
Evaluate nodejs script with vim. .sticker
Send a sticker from replied image. .translate <code>
Translate text to the default language. .report <issue>
Report an issue with the bot. .support
Get support and assistance. .help
You can see more command lists
Need any help? Feel free to join our support group. We will be happy to help you
- Whatsapp-web.js for providing awesome package
- WhatsBot for telegraph, sticker, term and carbon command inspiration
- ThiruXD ♡︎ for making youtube downloader commands
- Last but Not Least: You for using my repo
I am still learning nodejs, so my code might look repeating cuz I dont want to touch code if its working, and I am having trouble in saving session on heroku. If you can help, please feel free to contribute.