https://github.com/timothycarambat/hacker-news-community-bot
This is a Twitter bot that automatically comments the "Comments" link for the (@newsycombinator) Hacker News Twitter Account/Bot. It's frustrating that on Twitter the main bot does not (and won't) include the comments link.
https://github.com/timothycarambat/hacker-news-community-bot
firebase-database firebase-functions hacker-news hacker-news-api node-fetch twitter-api twitter-bot ycombinator ycombinator-hacker-news
Last synced: about 2 months ago
JSON representation
This is a Twitter bot that automatically comments the "Comments" link for the (@newsycombinator) Hacker News Twitter Account/Bot. It's frustrating that on Twitter the main bot does not (and won't) include the comments link.
- Host: GitHub
- URL: https://github.com/timothycarambat/hacker-news-community-bot
- Owner: timothycarambat
- Created: 2021-06-15T08:15:02.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T17:15:43.000Z (almost 4 years ago)
- Last Synced: 2025-02-01T00:20:36.099Z (4 months ago)
- Topics: firebase-database, firebase-functions, hacker-news, hacker-news-api, node-fetch, twitter-api, twitter-bot, ycombinator, ycombinator-hacker-news
- Language: JavaScript
- Homepage: https://twitter.com/YCNewsCommunity
- Size: 66.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HACKER NEWS @newsycombinator COMMUNITY COMMENTER BOT
This is a bot that comments the community URL of the @newsycombinator account posts. This account is the primary hacker news account and the operator has stated they will not put the community discussion in the links. I am not sure why but much like Reddit, I go for the comments so here it it. I also spend most of my time on Twitter so this is where I see stuff first.Some notes:
- This grabs the 5 most recent tweets of the account
- The cron task collects them and inserts them into the firestore DB
- the firestore DB has an onCreate trigger that will shoot off the actaul tweet.
- You will need a twitter app with Read/Write permissions and login as the Twitter user you want to tweet as to get OAuth.### Development
`npm install`
Place the correct credentials into the `env.json` file using `env.example.json` as a template.
`npm run start` - will start firebase services for functions and firestore.### Deploy
`npm run deploy` - Will copy env.json to firebase configs and have them available in production & push to production.