Fetch @ekusas55000's "sasuke-dinner" and notify a specific channel on the Discord server.
- Get the latest 200 tweets of a specific user using a private API such as
statuses/user_timeline
. - When operating for the first time (= initialize mode), save the tweet ID of the acquired tweets as notified.
- From the retrieved tweets, filter only "tweets that have not yet been notified" and "tweets that contain specific words".
- Post filtered tweets to Discord. The tweet ID of the posted tweets will be saved as notified.
- Why not use the search API?
- because the target account is shadow-banned💢
File: config.json
{
"twitter": {
"username": "XXXXXXXXXXXXXXXXXXXX",
"password": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"targetUserId": "1234567890"
},
"discord": {
"token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"channelId": "1234567890"
}
}