Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Awesome-Tofu/miko-bot?tab=readme-ov-file

Miko bot is a feature-rich WhatsApp bot powered by whatsapp-web.js, automating tasks and providing utilities for an enhanced messaging experience. Simplify your interactions with Miko's user-friendly commands and customizable settings.
https://github.com/Awesome-Tofu/miko-bot?tab=readme-ov-file

List: miko-bot?tab=readme-ov-file

chatbot nodejs whatsapp-automation whatsapp-bot whatsapp-web-js

Last synced: 3 months ago
JSON representation

Miko bot is a feature-rich WhatsApp bot powered by whatsapp-web.js, automating tasks and providing utilities for an enhanced messaging experience. Simplify your interactions with Miko's user-friendly commands and customizable settings.

Awesome Lists containing this project

README

        

# MIKO BOT

MIKO BOT is a Node.js-based WhatsApp chatbot powered by [Puppeteer](https://pptr.dev/) and [whatsapp-web.js](https://github.com/pedroslopez/whatsapp-web.js). It allows you to automate interactions with WhatsApp Web, enabling various automated tasks and responses.

## Features

- **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](https://github.com/Awesome-Tofu/miko-bot?tab=readme-ov-file#getting-started) I wont be running the bot from now on, but you can try the repo

## Getting Started

Follow these steps to set up and run the MIKO BOT on your local machine or deploy it to a cloud platform like Heroku.

1. **Clone the Repository**:

```bash
git clone https://github.com/awesome-tofu/miko-bot.git

2. **Change the Directory**:

```bash
cd miko-bot

3. **Install Dependencies:**

```bash
npm install

4. **Set Environment Variables:**

**sample:** [sample.env](https://github.com/Awesome-Tofu/miko-bot/blob/main/sample.env)
```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)

5. **Start the script:**
```bash
npm start

6. **Scanning the QR code:**

Open the link provided by the deployment platform OR if you are running on local platform open http://localhost:3000/

7. **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 ` | Translate text to the default language. |
| `.report `| Report an issue with the bot. |
| `.support` | Get support and assistance. |
| `.help` | You can see more command lists |

## Support

Need any help? Feel free to join our support group. We will be happy to help you☺️






whatsapp

## Thanks to

- [Whatsapp-web.js](https://github.com/pedroslopez/whatsapp-web.js) for providing awesome package
- [WhatsBot](https://github.com/tuhinpal/WhatsBot) for telegraph, sticker, term and carbon command inspiration
- [ThiruXD ♡︎](https://github.com/ThiruXD) for making youtube downloader commands
- Last but Not Least: [You](https://i.imgur.com/lDjxY1D.gif) image for using my repo

## Things I want you to know

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.

## License

[MIT](https://choosealicense.com/licenses/mit/)