https://github.com/panga/askpwnedbot
Ask Pwned Bot uses https://haveibeenpwned.com API to check if your account has been pwned
https://github.com/panga/askpwnedbot
telegram-bot twitter-bot webhooks webtask
Last synced: 6 months ago
JSON representation
Ask Pwned Bot uses https://haveibeenpwned.com API to check if your account has been pwned
- Host: GitHub
- URL: https://github.com/panga/askpwnedbot
- Owner: panga
- License: apache-2.0
- Created: 2018-06-22T01:59:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-22T21:24:13.000Z (over 7 years ago)
- Last Synced: 2025-07-03T02:05:19.577Z (6 months ago)
- Topics: telegram-bot, twitter-bot, webhooks, webtask
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AskPwnedBot
Ask Pwned Bot uses https://haveibeenpwned.com API to check if your account has been pwned.
The implementation of the webhook is done using https://webtask.io/ a serverless solution.
## Test on Telegram
https://t.me/askpwnedbot
## Test on Twitter
https://twitter.com/askpwnedbot
## Deploy on Telegram
1. Create a Telegram Bot and get its token:
https://core.telegram.org/bots
2. Deploy the webtask:
`wt create askpwnedbot-telegram.js --name askpwnedbot-telegram --secret BOT_TOKEN=$BOT_TOKEN`
3. Set the webhook:
```
curl -X POST -d "url=$WEBTASK_URL" -H "Content-Type: application/x-www-form-urlencoded" https://api.telegram.org/bot$BOT_TOKEN/setWebhook
```
## Deploy on Twitter
1. Create a Twitter app + developer account to use Account Activity API
https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/overview
2. Deploy the webtask:
`wt create askpwnedbot-twitter.js --name askpwnedbot-twitter --secret TWITTER_BOT_ID=$TWITTER_BOT_ID --secret TWITTER_CONSUMER_KEY=$TWITTER_CONSUMER_KEY --secret TWITTER_CONSUMER_SECRET=$TWITTER_CONSUMER_SECRET --secret TWITTER_ACCESS_TOKEN_KEY=$TWITTER_ACCESS_TOKEN_KEY --secret TWITTER_ACCESS_TOKEN_SECRET=$TWITTER_ACCESS_TOKEN_SECRET`
3. Setup the webhook:
`node scripts/setup_twitter_webhook.js`
4. Setup the subscription:
`node scripts/setup_twitter_subscription.js`
## License
[Apache License 2.0](LICENSE)