https://github.com/frontendwizard/thereactdev
The function that feeds @TheReactDev twitter.
https://github.com/frontendwizard/thereactdev
Last synced: about 1 year ago
JSON representation
The function that feeds @TheReactDev twitter.
- Host: GitHub
- URL: https://github.com/frontendwizard/thereactdev
- Owner: frontendwizard
- Created: 2019-03-05T19:29:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T15:54:49.000Z (over 3 years ago)
- Last Synced: 2025-05-06T06:12:29.438Z (about 1 year ago)
- Language: JavaScript
- Size: 86.9 KB
- Stars: 12
- Watchers: 0
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TheReactDev
The function that feeds @TheReactDev twitter.
This project was inspired by
[this article](https://dev.to/danielelkington/a-bot-that-tweets-new-dev-articles-about-vue-4p5a).
This function depends on a few environment variables:
- `dev_tag`: the dev.to tag to which the crawler will get the latest articles.
- `twitter_bot_screen_name`: the name of the account that will tweet the
articles.
- Twitter keys:
- `twitter_consumer_key`
- `twitter_consumer_secret`
- `twitter_access_token`
- `twitter_access_token_secret`
- `telegram_bot_token`: the telegram bot who's going to log messages for
maintenance/debug purposes
- `telegram_chat_id`: the channel where the bot will send messages
You just need to create a `env.yml` file and put those values in, like this:
```yml
dev_tag: "react"
twitter_bot_screen_name: "NameOfTheTwitterAccount"
twitter_consumer_key: "..."
twitter_consumer_secret: "..."
twitter_access_token: "..."
twitter_access_token_secret: "..."
telegram_bot_token: "..."
telegram_chat_id: "..."
```
It's worth noting that I used telegram here because it was simple and it
probably is the fastest way I can see a message in case things go wrong.
Probably sentry.io would be more
I started using azure, like
[twitter-vue-dev](http://github.com/danielelkington/twitter-vue-dev/), but after
a few hours of headaches I'm switching to the serverless framework with aws.