vasani-arpit / WBOT

A simple Web based BOT for WhatsApp™ in NodeJS 😜. Working as of 📅 Feb 4th, 2024
Other
986 stars 314 forks source link

Contains is not working for me #224

Closed Diego-Schmidt closed 3 years ago

Diego-Schmidt commented 3 years ago

"contains": ["word1","word2"], is not working in my WBOT installation. Bot is not replying to key words. "exact" is working fine.

vasani-arpit commented 3 years ago

Will test and get back to you.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

andrii-bohdan commented 3 years ago

"contains": ["word1","word2"], is not working in my WBOT installation. Bot is not replying to key words. "exact" is working fine.

Hi, Diego-Schmidt Can you show your bot.json file ? In my projects, I use either contains or extra for a specific event , I do not use both of them for one operation. It's work for me: Try to separate words between using "|" "contains":["hello|hi|ciao"], "exact":[], - must be empty, "response": "Hi, how are you?" , Let me know if it helped I will run tests

Diego-Schmidt commented 3 years ago

Contains is in the format that came with the default bot.js file. { "contains": ["janmdin","hardik","shubhkaamna"], "exact": [], "response": "aabhar 🙏" },

Diego-Schmidt commented 3 years ago

I have tested the bot with a clean bot.json and containst is working @_@ I don't know what error caused the bot to stop working.

vasani-arpit commented 3 years ago

Closing this for now. Feel free to open if it happens again.