Like a big forest / We are all the same some how / Like a big forest
4
   
Award
Favorite
Favorited
Unfavorite
Download
"var date = new Date();
if (!config.profile_commenter[account.user.steamID]
||config.profile_commenter[account.user.steamID].day != date.getUTCDay()) {
config.profile_commenter[account.user.steamID].day = date.getUTCDay();
config.profile_commenter[account.user.steamID].post_free = 190;
} else if (config.profile_commenter[account.user.steamID].post_free < 1
|| TIMECHECK) {
return false;
}
config.profile_commenter[account.user.steamID].post_time = Math.max(90000, Math.floor(((Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate()+1, 0)-now)-1800000)/(config.profile_commenter[account.user.steamID].post_free)));*/
// XXX FIXME TODO I ALWAYS WANT THE REPLICANTS TO POST, AND MAIN SHOULD ONLY POST ONCE EVERY 5 5 MINUTES OR SOMETHING
// IT SHOULD STILL CHECK FOR POST FREE, OR WE CAN CHANGE IT TO 200 AND USE NOT 5 MINUTES BUT WHATEVER IT IS
// TO ALMOST POST @ 190
// SO it relies on byteframe.js simple minute checks now
// XXX FIXME TODO if account is limited, use friends
// ♥♥♥♥ last_steamid, if doing friend do it randomly
// the strangers that post should be skipped ....so no point in checking replies?
// I want it to reply to friends posts, but other wise post randomly.
// So check repliyes first, add a friend check there, (the signifcance of the friend check is so it doesnt
// select random one here no pass in whole array so it can iterate over privates and undesirables
////////////////////////////////////////////////////////////////////////////////
} else if (force_steamid) {
post_comment([['', force_steamid]].concat(strangers));
force_steamid = null,
////////////////////////////////////////////////////////////////////////////////
setTimeout(start_profile_commenter, calculate_delay(), account), // XXX
////////////////////////////////////////////////////////////////////////////////
friend_comment = (account, targets) => (
(!targets.length) ?
(!account.user.limitations.limited) &&
account.friends('profiles/' + config.byteframe.last_profiles[Math.floor(Math.random()*config.byteframe.last_profiles.length)] + "/friends", (steamids) => (
steamids.forEach((item, index) =>
(config.byteframe.last_profiles.indexOf(item) == -1) &&
targets.push(item)),
friend_comment(account, targets)))
:(target = targets.splice(Math.floor(Math.random()*targets.length), 1)[0],
account.http_request('profiles/' + target + '/allcomments', null, (body, response, err, player = body.match(/<title>.*<\/title>/)[0].slice(26,-28)) =>
(body.indexOf('commentthread_textarea') == -1) ?
friend_comment(account, targets)
: account.post_comment(target, emoticon_convert(pool_elements(comment_messages, 1, null)[0](player)).substr(0,925), 3, -1, () => (
account.log('SUCCESS | comment/Profile/post: ' + (body.match(/"whiteLink" href=".*"/)[0].slice(45,-1) + ' -- "' + player + '"' + " {" + config.byteframe.last_profiles.length + "}").yellow),
(config.byteframe.last_profiles.indexOf(target) == -1) &&
config.byteframe.last_profiles.push(target)))))),
////////////////////////////////////////////////////////////////////////////////
(!accounts[a].user.limitations.limited) ? // XXX
friend_comment(accounts[a], targets)
: friend_comment(accounts[a], Object.keys(accounts[a].user.myFriends))"
2 Comments
iOwnya 24 Jan, 2020 @ 4:29am 
What?
rus_wh 3 Jan, 2020 @ 9:30am 
:blackcat: