February 22, 2020 10:09 pm GMT
Original Link: https://dev.to/freddyjd/uber-eats-ruined-my-life-solved-with-nodejs-fun-2548
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:
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To