Coder Social home page Coder Social logo

Comments (11)

ohsyme avatar ohsyme commented on June 2, 2024 1

Different error
image
image

try this if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))

from whatsapp-bot.

thoriqazzikraa avatar thoriqazzikraa commented on June 2, 2024

send screenshot when you type in whatsapp for that error

from whatsapp-bot.

Harsh-beep avatar Harsh-beep commented on June 2, 2024

there is no error in whatsapp or bot. It's just on console.

from whatsapp-bot.

thoriqazzikraa avatar thoriqazzikraa commented on June 2, 2024

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.

Harsh-beep avatar Harsh-beep commented on June 2, 2024

× 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.

Harsh-beep avatar Harsh-beep commented on June 2, 2024

Different error
image
image

from whatsapp-bot.

Harsh-beep avatar Harsh-beep commented on June 2, 2024

Different error
image
image

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.

Harsh-beep avatar Harsh-beep commented on June 2, 2024

try this if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))

image
image
Same

from whatsapp-bot.

thoriqazzikraa avatar thoriqazzikraa commented on June 2, 2024

try this if (chats.match(new RegExp(/(https:\/\/chat.whatsapp.com)/gi)))

image
image
Same

why you close this issue?
is it fixed now?

from whatsapp-bot.

Harsh-beep avatar Harsh-beep commented on June 2, 2024

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 } }

image

from whatsapp-bot.

thoriqazzikraa avatar thoriqazzikraa commented on June 2, 2024

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 } }

image

okayyy

from whatsapp-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.