WhatsApp Bot with @mengkodingan/ckptw.
npm install ckptw-wabotckptw-wabot is a WhatsApp Bot built using the @mengkodingan/ckptw library. This bot allows you to automate various tasks on WhatsApp, and it supports a modular architecture through plugins.
ckptw-wabot:
bash
git clone https://github.com/itsreimau/ckptw-wabot.git
cd ckptw-wabot
`
2. Install Dependencies:
`bash
npm install
`
3. Configuration:
Copy the config.example.js file to config.js and update the necessary configuration values, such as Owner number, API key, etc.
4. Run the Bot:
`bash
npm start
`
5. QR Code Authentication:
Scan the QR code generated by the bot using your WhatsApp mobile app to authenticate.
6. Start Interacting:
Once authenticated, the bot is ready to handle incoming messages and execute commands.
Customization
$3
To add a new plugin, follow these steps:
1. Create a new JavaScript file in the plugins folder with your desired functionality. For example, ping.js:
`javascript
// plugins/info-ping.js
module.exports = {
name: 'ping',
category: 'info',
code: async (ctx) => {
ctx.reply('Pong!');
}
};
`
2. Your plugin is now ready to use. Users can trigger it by sending /ping in the chat.
$3
For more details on using the underlying library, refer to the ckptw documentation.
Contributions
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.
License
This project is licensed under the MIT License.
---
Feel free to explore, modify, and enhance ckptw-wabot` to suit your specific needs. Happy coding!