A simple Whatsapp bot that create a CNY greeting card.
git clone https://github.com/hongvin/cny-bot
npm i
- Comment line 16 of the
whatsapp-web.js
library atnode_modules/whatsapp-web.js/src/util/Injected.js
node cny.js
orpm2 start cny.js
- Refer here on how to login to Whatsapp.
- Since this bot involve sending media, you need to have Chrome setup. The code here assumed a Linux machine. Change your chrome location at Line 35 of
cny.js
.
This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates. The official WhatsApp website can be found at https://whatsapp.com. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners.
Copyright 2023 Hong Vin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.