Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
February 22, 2020 10:09 pm GMT

Uber Eats Ruined My Life - Solved with NodeJS

Hey guys!

I've been spending over $600 bucks per month in Uber Eats. My mentality was "Spend less time doing low-effort stuff, and more time coding and making MVP's of my projects"

So I thought it was going to be fun project to make a script that will listen to my keystrokes and bully me every time I try to go inside of "Uber eats."

Here is a quick youtube video explaining the whole thing:
How I solved uber eats with code video

For some PC's you will be required to use sudo when you run this script.

// Twilio API and a Key logger  for macconst client = require('twilio')(twilio_sid, twilio_token);const GK = require('global-keypress');// we start the keylogger for mac-os 10.5const gk = new GK();gk.start();// the word we are looking for const word = 'uber'let wordBuilder = ''// lets find it.gk.on('press', data => {    if (word[wordBuilder.length] === data.data) {        wordBuilder += data.data;        if (word === wordBuilder) {            client.messages                .create({                    body: 'I am about to spend 20$ in uber eats, why the fuck are you letting me do this - https://the-cray-bucket.s3.amazonaws.com/vid.mp4',                    from: 'whatsapp:+' + from_number,                    to: 'whatsapp:+' + mom,                })                .then(message => console.log(message.sid))                .done();        }    } else {        wordBuilder = ''    }});

Thank you for reading my first post on dev.to. I would appreciate any feedback


Original Link: https://dev.to/freddyjd/uber-eats-ruined-my-life-solved-with-nodejs-fun-2548

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To