i am making this tool out of a personal need, ads in the university groups are so annoying. let us hope this tool makes our lives as students, quieter :D
For .wwebjs_cache versions, check this link: WhatsApp Web Versions
WhatsApp Ads Buster is a bot designed to help you automatically remove annoying ads from your university WhatsApp groups. By adding this bot to your groups, you can ensure a cleaner and more focused group chat experience.
- π³ Docker
- π³ Docker Compose plugin
- π± A WhatsApp account to act as the ads buster in groups
Note: Use a new WhatsApp account that you don't mind getting banned. I recommend using a pre-paid number.
This new number will be the "ads-buster" that you add to groups as an admin where you want the bot to take action.
- Get a number for the ads-buster.
- Set the required environment variables (e.g.,
MONGO_EXPRESS_ADMIN_PASSWORD
). - Run the following command to start the services:
docker compose up
This command will start the following services:
- MongoDB: Database service running on port
27017
. - Mongo Express: Web-based MongoDB admin interface running on port
8081
. Access it viahttp://localhost:8081
(Default username:admin
, password: set via environment variableMONGO_EXPRESS_ADMIN_PASSWORD
). - Ads Buster Bot: The main bot service.
- Check the logs and scan the QR code to authenticate.
If you prefer to run it manually, youβll need a MongoDB instance and Node.js. Docker is easier, but hereβs how you can do it:
- Install dependencies:
pnpm install
- Run the Node.js application:
pnpm start
To use the features, the bot must be in the group. Trusted admins can use the following commands. The bot is a trusted admin by default and can add more trusted users. Trusted admins can also add more admins.
- Commands for "trusted admins":
!ad
: Reply to an ad with this command, and the bot will kick the ad sender from the group and all other groups it is in. The sender will be blacklisted.- Example: Respond to an ad message with
!ad
to kick the sender from all groups.
- Example: Respond to an ad message with
!kick
: Mention a user with@
and use this command to kick them from the group. The user will also be blacklisted.- Example:
!kick @username
to remove the user from the group and blacklist them.
- Example:
!admin
: Allows trusted admins to add more admins. Use this command with the bot account to add the first trusted admin.- Example:
!admin @username
to grant admin privileges to the user.
- Example:
- Commands for everyone:
!ping
: A simple test command. The bot will reply withpong
.- Example: Type
!ping
to check if the bot is active.
- Example: Type
We welcome contributions! Hereβs how you can get involved:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
- Follow the coding standards used in the project.
- Write clear, concise commit messages.
- Include comments in your code where necessary.
- Ensure your changes do not break existing functionality.
This project is licensed under GPL v3. Make sure to comply with it when using, especially if you plan to use it privately.