Files
NijiHolo_EN_ID_Bot/README.md
T

29 lines
1.3 KiB
Markdown
Raw Normal View History

2022-09-10 00:47:47 -05:00
# NijiHolo_EN_ID_Bot
2022-09-10 00:53:18 -05:00
*Twitter bot that follows interactions between Nijisanji EN/ID and hololive EN/ID members.*
2022-09-10 00:47:47 -05:00
...because some folks are that desperate. Like me!
2022-09-09 03:17:42 -07:00
## Roadmap
* Read past tweets of members from both companies
2022-09-10 00:58:44 -05:00
* Track tweets in queue and history/log files
2022-09-09 03:17:42 -07:00
* Create image of tweet, including up to three image attachments from that tweet
* Combine image(s) with quote retweet
2022-09-10 00:58:44 -05:00
* Don't tweet already-existing tweets (check our past quote RTs; might be saved in a file for quicker access)
* Listen for live tweets as soon as they post
2022-09-09 03:17:42 -07:00
## Notes
* Tweets should only occur if involved parties are cross-company
2022-09-10 00:58:44 -05:00
* Tweets should only occur if interaction involves [EN and EN] or [EN and (former) ID] parties
2022-09-09 03:17:42 -07:00
* cross-company ID interactions are regular enough
2022-09-10 00:58:44 -05:00
* Text of our tweet should include involved names (w/o @) and the message, up to our tweet limit
* this, along with image, helps archive deleted tweets
2022-09-09 03:17:42 -07:00
## API Calls
**retrieving tweets from a user**
https://oauth-playground.glitch.me/?id=usersIdTweets
* `id`: user
* `max_results=100`: 100 is the highest number of tweets we can retrieve
* `pagination_token`: token that takes us to the next/prev page of tweets
* use `meta[next_token]`
* `expansions=entities.mentions.username,in_reply_to_user_id`
* exposes mentions and replied users