This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ③最新のツイートをリツイートする | |
*/ | |
function retweetLatest () { | |
// 最新のツイートのツイートIDを取得する | |
const accountNames = ['belltreeszk', 'belltreeszk2'] // 対象のアカウントの @~~~~ の部分を記入 | |
for (let i in accountNames) { | |
const accountName = accountNames[i]; | |
const includeRT = false // RTを含むか(他のユーザーのツイートのRTも再度RTします) | |
const retweetCount = 5 // 直近何件のツイートをRTするか | |
const tweetIds = client.pickupTweetsLatest(accountName, includeRT, retweetCount); | |
// 受け取ったツイートIDのツイートをすべてリツイートする | |
client.retweet(tweetIds) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment