Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify User on Captcha #26

Closed
jpchip opened this issue Feb 24, 2019 · 8 comments
Closed

Notify User on Captcha #26

jpchip opened this issue Feb 24, 2019 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jpchip
Copy link
Owner

jpchip commented Feb 24, 2019

As suggested in #19, send an email notification when a captcha is presented. This would mean adding email server credentials to the .env file so the user could basically send themselves an email.

@jpchip jpchip added enhancement New feature or request help wanted Extra attention is needed labels Feb 24, 2019
@famewolf
Copy link

Keep in mind gmail will be one of the most popular and plenty of people use 2FA which will complicate matters. I actually setup an account elsewhere and use it only for automated notices to myself from tasks on my htpc such as "X tv show was converted to mkv @ y date/time"

@jpchip
Copy link
Owner Author

jpchip commented Mar 16, 2019

Since adding emails would mean adding SMTP credentials to the .env file and just seems generally annoying to set up, thought I'd look into other options. Found this neat library: https://github.com/mikaelbr/node-notifier

So, I set it up to actually send system notifications when there is a captcha. That should get your attention.

@jpchip
Copy link
Owner Author

jpchip commented Mar 16, 2019

Closing this ticket for now.

@jpchip jpchip closed this as completed Mar 16, 2019
@famewolf
Copy link

famewolf commented Mar 16, 2019

Forget something?

famewolf@hp810-135qe ~/giveaway-grabber $ npm start -- --2FA

giveaway-grabber@2.3.0 start /home/famewolf/giveaway-grabber
node index.js "--2FA"

module.js:549
throw err;
^

Error: Cannot find module 'node-notifier'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/famewolf/giveaway-grabber/src/giveaways.js:3:12)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

npm ERR! Linux 4.15.0-45-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "--" "--2FA"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! giveaway-grabber@2.3.0 start: node index.js "--2FA"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the giveaway-grabber@2.3.0 start script 'node index.js "--2FA"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the giveaway-grabber package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js "--2FA"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs giveaway-grabber
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls giveaway-grabber
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/famewolf/giveaway-grabber/npm-debug.log

npm-debug.log

@jpchip
Copy link
Owner Author

jpchip commented Mar 16, 2019

You need to run npm install

@famewolf
Copy link

ran it with sudo because it kept trying to write to /usr/local/lib. I wanted it installed for the user but even that still didn't work. "sudo npm install -g giveaway-grabber" and then restarting resulted in:

famewolf@hp810-135qe ~/giveaway-grabber $ npm start -- --2FA

giveaway-grabber@2.3.0 start /home/famewolf/giveaway-grabber
node index.js "--2FA"

module.js:549
throw err;
^

Error: Cannot find module 'node-notifier'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/famewolf/giveaway-grabber/src/giveaways.js:3:12)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

npm ERR! Linux 4.15.0-45-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "--" "--2FA"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! giveaway-grabber@2.3.0 start: node index.js "--2FA"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the giveaway-grabber@2.3.0 start script 'node index.js "--2FA"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the giveaway-grabber package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js "--2FA"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs giveaway-grabber
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls giveaway-grabber
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/famewolf/giveaway-grabber/npm-debug.log
npm-debug.log

@jpchip
Copy link
Owner Author

jpchip commented Mar 16, 2019

ahh, don't run it with the -g. Make sure you are in the directory the package.json file is and run sudo npm install

@famewolf
Copy link

Working now. Might want to mention those steps in the changelog for "upgrades"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants