In the windy air / Birds fly swiftly in the wind / Chirping till the end
3
   
Award
Favorite
Favorited
Unfavorite
Download
"//######################################### This code goes where? top of twitter

screenshots = [],
screenshots_vdf = SimpleVDF.parse(fs.readFileSync("./screenshots.vdf", 'utf8')).screenshots,
Object.keys(screenshots_vdf).forEach((gameid) =>
(gameid != 'shortcutnames') &&
Object.keys(screenshots_vdf[gameid]).forEach((screenshot) =>
(screenshots_vdf[gameid][screenshot].Permissions == '8' && config.twitter.screenshots.indexOf(screenshots_vdf[gameid][screenshot].hscreenshot) == -1) &&
screenshots.push(screenshots_vdf[gameid][screenshot]))),
shuffle_array(screenshots),

//##############################################################################

run_media_tweet = (screenshot = screenshots.shift()) =>
twitter_request('POST', 'media/upload', { media: fs.readFileSync('/mnt/Datavault/Work/Steam/screenshots/760/remote/' + screenshot.filename) }, (err, body, response) =>
twitter_request('POST', 'statuses/update', { status: '', media_ids: body.media_id_string }, (err, body, response) =>
config.twitter.screenshots.push(screenshot.hscreenshot))),

//##############################################################################

// XXX dont do these tweets in the activity feed
if (!tweet.text.match(/^https://t/.co/[0-9a-zA-Z_]*$/)) {
next_tweet = tweet.id_str;
}

//############################################################################## MISC

// DONE DONE DONE delay save COnfig files until its own minute after all that ♥♥♥♥ that happens at minute 9?
//if I start uploading images to online, twitter will be easy
// if it fills up at 10000 who cares do it elsewhere...
// dont do these tweets in the activity feed
// it should skip all things with just a picture (IF I DO IT THIS WAY)
//filterOutAlreadyUploaded 9
//&& config.twitter.screenshots.indexOf(screenshots_vdf[gameid][screenshot].hscreenshot) == -1//
// then shuffle array //make it a one dimensional array? hopefully yerah
//I should load it up each time and process the list
//RATHER then preprocessing an array of 9666 screenshots and removing them, only do that if its request based like videos
//id still have to record the uploads them selves if I move past the first 9666 either just on twitte ror on steam too*/

"
1 Comments
yuri 20 Dec, 2018 @ 8:02am 
:NumIll: