Comments (11)
try this if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))
from whatsapp-bot.
send screenshot when you type in whatsapp for that error
from whatsapp-bot.
there is no error in whatsapp or bot. It's just on console.
from whatsapp-bot.
there is no error in whatsapp or bot. It's just on console.
try change chats.match into chats.includes
tell us if it's fixed the problem
from whatsapp-bot.
× Session data most likely expired due to manual host account logout. Please re-authenticate this session.
BOT is down for everyone now...
try change chats.match into chats.includes
tell us if it's fixed the problem
I did the changes... I'll let you know later..
from whatsapp-bot.
from whatsapp-bot.
try this
if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))
I did it. I'll let you know if it occurs again.. Thanks
from whatsapp-bot.
try this
if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))
from whatsapp-bot.
try this
if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))
why you close this issue?
is it fixed now?
from whatsapp-bot.
try this
if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))
I did it. I'll let you know if it occurs again.. Thanks
Yes, It's fixed.. I edited code to
if (isGroupMsg && GroupLinkDetector && !isGroupAdmins && !isOwner && oneLink == 0){ try { if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi))) { oneLink = 1; const gplka = await aruga.inviteInfo(chats) if (gplka) { console.log(color('[BAN]', 'red'), color('Group link detected, removing participant...', 'yellow')) await aruga.reply(from, '*[GROUP LINK DETECTOR]*\nYou sent a group chat link, sorry you got kicked from the group..:( ', id).then(async () => {await aruga.removeParticipant(groupId, user);return oneLink = 0 }) } else { console.log(color('[ALERT]', 'yellow'), color('Invalid group link received...', 'yellow'));oneLink = 0 } } } catch (error) { return oneLink = 0 } }
from whatsapp-bot.
try this
if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))
I did it. I'll let you know if it occurs again.. Thanks
Yes, It's fixed.. I edited code to
if (isGroupMsg && GroupLinkDetector && !isGroupAdmins && !isOwner && oneLink == 0){ try { if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi))) { oneLink = 1; const gplka = await aruga.inviteInfo(chats) if (gplka) { console.log(color('[BAN]', 'red'), color('Group link detected, removing participant...', 'yellow')) await aruga.reply(from, '*[GROUP LINK DETECTOR]*\nYou sent a group chat link, sorry you got kicked from the group..:( ', id).then(async () => {await aruga.removeParticipant(groupId, user);return oneLink = 0 }) } else { console.log(color('[ALERT]', 'yellow'), color('Invalid group link received...', 'yellow'));oneLink = 0 } } } catch (error) { return oneLink = 0 } }
okayyy
from whatsapp-bot.
Related Issues (20)
- Button HOT 12
- scan qr HOT 9
- Feature Request Reference HOT 2
- Throw errors while starting the script HOT 25
- pake api ini riq , test aja tuh HOT 2
- Gabisa pake fitur tiktok HOT 8
- Abis npm install langsung error HOT 2
- kok gini bang? HOT 7
- Note
- I HOT 1
- ChromePathNotSetError HOT 7
- selalu mati di heroku HOT 2
- Can't find module 'mime-types' HOT 2
- EADDRINUSE ERRNO: -4091 HOT 9
- help HOT 11
- PLEASE SEE THIS FOR FEATURE /PLAY
- Multi device detected HOT 6
- Kode QR ga bisa di scan di Heroku HOT 4
- drawbacks with keeping the bot active HOT 3
- rzkyfdlh-api token wrong HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-bot.