Giter VIP home page Giter VIP logo

groups-alertbot's Introduction

Hey, I am Pavit

Energetic Developer and Infosec enthusiast!

  • ๐Ÿ”ญ Most Recent Project AlertBot

  • ๐ŸŒฑ Iโ€™m currently learning Websockets

Pavit

๐Ÿ› ๏ธ Tried hands on

๐Ÿ‘จโ€๐Ÿ’ป Programming and markup languages

Bash C C++ CSS Dart HTML JavaScript Kotlin Markdown Node.js Python SQL TypeScript

๐Ÿงฐ Frameworks and libraries

Bootstrap Express.js Flutter GitHub Actions Material Design React VirtualBox Wordpress

๐Ÿ—„๏ธ Databases and cloud hosting

GitHub Pages Heroku MongoDB Netlify PostgreSQL SQLite Vercel

๐Ÿ’ป Software and tools

Adobe Android Android Studio Arch Linux Brave Codepen Docker Git Notepadplusplus MailChimp OBS Studio Photopea Postman Selenium Slack Trello Ubuntu Visual Studio Code


Prince's github stats

theSoberSobber Pavit Chhabra petty_pavit theSoberSobber

groups-alertbot's People

Contributors

ota0912 avatar thesobersobber avatar

Stargazers

 avatar  avatar

Watchers

 avatar

groups-alertbot's Issues

Migrate from Websockets to REST/Webhook based Architecture

The usage of websockets is one of the biggest pain points for this type of system.
Even despite not being CL (continuously listening) system (it is triggered by the user performing a GET request on the given endpoint, and as for the AT BOT, it is initiated by the checkAndReturn() function), the usage of websockets proves to be a bottleneck. Since no REST API hosting service supports websockets.

With that said, the problem here is that whatsapp doesn't have built in Integration for BOTS (like '/' in telegram), hence we need to listen to all messages and react to the one's meant for us.

Whatsapp does provide support for BOTs through webhook, but they probably run a similar websockets based approach (where they are constantly listening for message.upsert excluding groups on your session) on a server that sends HTTP Notifications to you. That's probably the reason they charge money for it.

A (maybe?) better approach could've been to just open up a selenium and message using headless web-scraping. That way we can atleast deploy a simple RESTful endpoint (or a HTTP based - CL function, like checkAndReturn ) that interacts with whatsapp.

Although I am not entirely positive that services like Vercel/Netlify would support a selenium/puppeteer instance running on what is supposed to be a RESTful API backend.

Can be merged with @AlertBot

This can be merged with @AlertBot.
The two have no conflicting code, other than the connect.js redundant code.
Only some refactoring would be needed.


For more info see the deploying guide of AlertBot.

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.