https://github.com/ericrabil/twat
Immediately reply to specific authors on twitter
https://github.com/ericrabil/twat
twit twitter twitter-bot
Last synced: about 1 month ago
JSON representation
Immediately reply to specific authors on twitter
- Host: GitHub
- URL: https://github.com/ericrabil/twat
- Owner: EricRabil
- License: mit
- Created: 2020-03-16T22:29:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T21:52:05.000Z (over 3 years ago)
- Last Synced: 2025-01-06T04:41:52.015Z (over 1 year ago)
- Topics: twit, twitter, twitter-bot
- Language: TypeScript
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twat
#### Commissioned by [JustinAlexP](https://twitter.com/JustinAlexP?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor)
Hello, this is Twat, which runs on Twit, for Twitter.
This is a small program that will reply to a configured list of twitter users with a set string.
## Setting up
1. [Make a Twitter account](https://twitter.com/i/flow/signup) for the bot.
2. [Apply for a developer account](https://developer.twitter.com/en/apply-for-access) for the bot. Sorry, blame Russia.
3. [Create a Twitter application](https://developer.twitter.com/en/apps) for the bot.
4. Under the newly created app page, go to the `Keys and tokens` tab, then copy over the `API key`, `API secret key`, `Access token`, and `Access token secret`. These will go into their respective fields in your configuration file.
5. [Get the twitter IDs](http://gettwitterid.com/) of the users you will be replying to
6. Pick your reply
7. Fill out the configuration file
8. Run the following commands
```zsh
fatbitch@FatBitch-Mac Twat % npm i
fatbitch@FatBitch-Mac Twat % npm run build
fatbitch@FatBitch-Mac Twat % npm run start:prod
```
If all goes well, you should see
```
info: im ready to roll
```
Now, just wait for the users you chose to follow to tweet and watch the replies roll out.
## Example configuration file
```json
{
"twitter": {
"consumer_key": "your ugly api key here",
"consumer_secret": "your ugly api secret key there",
"access_token": "your ugly access token here",
"access_token_secret": "your ugly access token secret there"
},
"params": {
"follow": [
"ugly bitch token here"
]
},
"reply": "Ok boomer"
}
```