A Clash Of Clans Bot based on a WhatsApp client library for NodeJS that connects through the WhatsApp Web Socket Using a library called Baileys. Bailey's is a super light weight library that allows you to use WhatsApp Web's functions in your code without using browser. This bot is made for educational purposes only and is not affiliated with WhatsApp or any other company.
- Install NodeJS
- Install NPM
- Install Git
- Clone this repository using
git clone https://github.com/shavy4452/Clash-WhatsApp-Bot.git && cd Clash-WhatsApp-Bot
- Install the dependencies using
npm install
- Change the coc developer email and password in
config.json
- Run the bot using
npm start
- Scan the QR code shown in the console using your WhatsApp
- Enjoy!
- Send
!clan
to get the clan information. - Send
!player
to get the player information. - Send
!help
to get the list of commands. - Send
!badge
to get the clan badge.
Note: This is just an example, you can add more commands and features to the bot. You can also use this bot as a base for your own bot.
config.json
- The main configuration file for the bot.
{
"coc_dev":{
"email": "", // Your Clash Of Clans Developer Email
"password": "" // Your Clash Of Clans Developer Password
},
"developer": "919xxxxxxxx", // Your WhatsApp Number
"command_prefix": "!"
}
Do you want to try the ready to use bot? Click Here
- Shavy - Developer
This project is licensed under the MIT License - see the LICENSE file for details
- Fork the repository (here is the guide)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
- Wait for your PR to be reviewed and merged
- Celebrate! 🎉
- Send me a message on Discord or Email if you want to donate we accept donations through PayPal and Patreon and all other indian payment methods.
This project is not affiliated with WhatsApp or any of its partners in any way. WhatsApp is a registered trademark of WhatsApp Inc. This project is an independent and unofficial API. Use at your own risk.
If you need help with this project, you can contact me on Discord or Email. Also, you can join our Discord server for support and star this repository to show your support.