whabot
is a WhatsApp Bot built using the whasapi library. This bot allows you to automate various tasks on WhatsApp, and it supports a modular architecture through plugins.
- Message Handling: Handle incoming messages and respond accordingly.
- Command Parsing: Parse commands sent by users to trigger specific actions.
- Interactive Responses: Provide interactive and dynamic responses to user queries.
- Media Handling: Support for sending and receiving media files such as images, videos, and documents.
- Plugin System: Easily extend and customize the bot by adding new plugins.
Follow these steps to set up and run whabot
:
-
Clone Repository:
git clone https://github.com/KazeDevID/whabot.git cd whabot
-
Install Dependencies:
npm install
-
Configuration: Copy the
config.example.js
file toconfig.js
and update the necessary configuration values, such as Owner number, API key, etc. -
Run the Bot:
npm start
-
QR Code Authentication: Scan the QR code generated by the bot using your WhatsApp mobile app to authenticate.
-
Start Interacting: Once authenticated, the bot is ready to handle incoming messages and execute commands.
To add a new plugin, follow these steps:
-
Create a new JavaScript file in the
plugins
folder with your desired functionality. For example,ping.js
:// plugins/info-ping.js module.exports = { name: 'ping', category: 'info', code: async (sock) => { sock.reply('Pong!'); } };
-
Your plugin is now ready to use. Users can trigger it by sending
/ping
in the chat.
For more details on using the underlying library, refer to the whasapi documentation.
Contributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or submit a pull request.