Some slap and tickle / Another libation please / Now better looking
3
   
Award
Favorite
Favorited
Unfavorite
Download
"//##############################################################################
run_tweet_post = (account) =>
twitter_request('GET', 'statuses/user_timeline', { screen_name: 'byteframe' }, (err, body, reponse, next_tweet = null) => (
global.body = body,
body.some((tweet) =>
(tweet.id_str == state.last_tweet) ?
true
:(!tweet.text.match(/^#.*https://t/.co/[0-9a-zA-Z_]*$/)) ? (
next_tweet = tweet.id_str,
false)
: false),
(next_tweet) &&
twitter_request('GET', 'statuses/show', { id: next_tweet, tweet_mode: 'extended' }, (err, result1, reponse,
entities = [ "[url=https://twitter.com/byteframe]@byteframe[/url]" ],
type = (result1.retweeted ? 'RETWEETED' : 'TWEETED'),
_run_tweet_post = () => (
// XXX just get it here? prolly not,
// get data from the FIRST!? twitter url? sure why not
// but it might not neccessairly be a RT
// so its a retweet
// this one tweet georgia ted has no quoted status, bno url entities, but a url to another tweet that it translates
// another has this, but its actually a link to the image but it resolves to itself!?
// but I could negtate it from media
// does it matter that its a retweet? I only want to get actualy tweets
// UGGG what im trying to do is get text from the third level twitter status. which I cant really identify tyet
result1.entities.user_mentions.forEach((entity) =>
entities.push('@' + entity.screen_name + '[twitter.com]')),
result1.entities.hashtags.forEach((entity) =>
entities.push('#' + entity.text + '[twitter.com]')),
result1.entities.urls.forEach((entity) => (
(entity.display_url.indexOf('youtu') == 0) ?
result1.full_text = result1.full_text.replace(entity.url, entity.expanded_url) : null,
result1_full_text = result1.full_text.replace(entity.expanded_url + "\n\n", entity.expanded_url + "\n"))),
//
//state.last_tweet = result1.id_str,
console.log("" + data.greetings[Math.floor(Math.random() * data.greetings.length)] + " " + pool(data.ascii)
//post_status(account, "" + data.greetings[Math.floor(Math.random() * data.greetings.length)] + " " + pool(data.ascii)
+ " | byteframe (from Steam) just " + type + " something!"
+ ' ' + data.signs[0] + ':' + result1.id_str + '[twitter.com]\n\n'
+ pool(data.emoticons[3], 29, "|") + "\n\n"
+ html_convert(result1.full_text) + "\n\n"
+ pool(data.emoticons[3], 29, "|") + "\n\n"
+ font("ENTITIES", 15) + ": " + shuffle_array(entities).join(',') + "\n"
+ pool(data.smileys)+ " " + new Date().toUTCString() + " " + pool(data.smileys)
, 809320))) => (
//////////////////////////////////////////////////////////////////////////////// twitter_request('GET', 'statuses/user_timeline', { screen_name: 'byteframe' }, (err, body, reponse) => global.body = body)
result1.quoted = (result1.quoted_status || result1.in_reply_to_status_id_str ? true : false),
(result1.retweeted) ?
result1.full_text = "@" + result1.retweeted_status.user.screen_name + ":\n" + result1.retweeted_status.full_text + " "
// OKAY is what i want to get the quoted status IN the retweet? just go for this and end it
: result1.full_text = "@byteframe:\n" + result1.full_text.replace(/ https://t.co/[a-zA-Z0-9]*$/, ''),
(!result1.quoted) ?
_run_tweet_post()
: ((result1.quoted_status) ? (
type = 'QUOTED',
entities.push('@' + result1.quoted_status.user.screen_name + '[twitter.com]'))
: (type = 'REPLIED TO',
result1.full_text = result1.full_text.replace(/@.+? /, '')),
twitter_request('GET', 'statuses/show', { id: (result1.quoted_status) ? result1.quoted_status.id_str : result1.in_reply_to_status_id_str, tweet_mode: 'extended' }, (err, result2, response) => (
result1.entities.hashtags = result1.entities.hashtags.concat(result2.entities.hashtags),
result1.entities.symbols = result1.entities.symbols.concat(result2.entities.symbols),
result1.entities.user_mentions = result1.entities.user_mentions.concat(result2.entities.user_mentions),
result1.entities.urls = result1.entities.urls.concat(result2.entities.urls),
result1.full_text += "\n\n@" + result2.user.screen_name + ":\n" + result2.full_text + "",
_run_tweet_post()))))))),
////////////////////////////////////////////////////////////////////////////////
run_tweet_post(accounts[0]);
//##############################################################################"