๐Ÿ™ Uber Eats๊ฐ€ ๋‚ด ์ธ์ƒ์„ ๋ง์ณค์Šต๋‹ˆ๋‹ค - NodeJS๋กœ ํ•ด๊ฒฐ

4675 ๋‹จ์–ด javascriptnode
์–˜๋“ค ์•„!

์ €๋Š” Uber Eats์—์„œ ํ•œ ๋‹ฌ์— 600๋‹ฌ๋Ÿฌ ์ด์ƒ์„ ์ง€์ถœํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‚ด ๋งˆ์Œ๊ฐ€์ง์€ "๋…ธ๋ ฅ์ด ๋œ ๋“œ๋Š” ์ผ์— ์‹œ๊ฐ„์„ ๋œ ์“ฐ๊ณ  ๋‚ด ํ”„๋กœ์ ํŠธ์˜ ์ฝ”๋”ฉ๊ณผ MVP๋ฅผ ๋งŒ๋“œ๋Š” ๋ฐ ๋” ๋งŽ์€ ์‹œ๊ฐ„์„ ํˆฌ์žํ•˜์„ธ์š”"์˜€์Šต๋‹ˆ๋‹ค.

๊ทธ๋ž˜์„œ "Uber eats"์— ๋“ค์–ด๊ฐ€๋ ค๊ณ  ํ•  ๋•Œ๋งˆ๋‹ค ๋‚ด ํ‚ค ์ž…๋ ฅ์„ ๋“ฃ๊ณ  ๋‚˜๋ฅผ ๊ดด๋กญํžˆ๋Š” ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋งŒ๋“œ๋Š” ๊ฒƒ์ด ์žฌ๋ฏธ์žˆ๋Š” ํ”„๋กœ์ ํŠธ๊ฐ€ ๋  ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ–ˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ์€ ์ „์ฒด ๋‚ด์šฉ์„ ์„ค๋ช…ํ•˜๋Š” ๋น ๋ฅธ YouTube ๋™์˜์ƒ์ž…๋‹ˆ๋‹ค.

์ผ๋ถ€ PC์˜ ๊ฒฝ์šฐ ์ด ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ sudo๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

// Twilio API and a Key logger  for mac
const client = require('twilio')(twilio_sid, twilio_token);
const GK = require('global-keypress');

// we start the keylogger for mac-os 10.5
const 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 = ''
    }
});


dev.to์˜ ์ฒซ ๋ฒˆ์งธ ๊ฒŒ์‹œ๋ฌผ์„ ์ฝ์–ด ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ํ”ผ๋“œ๋ฐฑ์„ ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ