Skip to content

Instantly share code, notes, and snippets.

@stsysr
Last active January 1, 2016 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stsysr/8131298 to your computer and use it in GitHub Desktop.
Save stsysr/8131298 to your computer and use it in GitHub Desktop.
if_somebody_fav_me_then_tweet_emoji.rb
# -*- coding: utf-8 -*-
Earthquake.init do
array = [
174,
128146,
128657,
128192,
127906,
128508,
127916,
127920,
128188,
127971,
128509,
128082,
127975,
127846,
128114,
128658,
128643,
128241,
128243,
128116,
128244,
128117,
128644,
128645,
8482,
169,
127909,
128252,
128304,
127837,
127905,
127828,
127802,
127913,
127799,
127930,
128032,
128085,
127921,
127977,
128161,
128057,
9962,
127546,
128269,
127981,
128305,
127808,
128120,
9193,
9194,
128137,
127747,
127847,
127359,
128125,
128126,
128266,
9855,
127890,
128115,
127887,
128690,
127875,
127873,
127881,
128189,
128224,
127973,
127380,
127940,
127942,
128118,
128700,
128103,
128102,
126980,
128084,
127886,
128113,
128039,
128187,
9832,
9888,
128677,
9981,
127915,
127482,
127467,
127466,
128666,
127470,
128191,
128659,
127468,
128661,
127880,
127888,
128640,
9992,
127891,
127885,
128226,
128227,
127797,
9970,
128225,
11014,
11015,
11013,
10145,
8599,
8598,
8600,
8601,
127796,
127749,
10175,
128507,
127803,
128144,
9978,
127910,
127750,
128296,
127980,
128027,
128655,
128020,
128023,
127978,
127974,
128058,
127744,
127970,
127979,
128242,
9889,
128163,
128110,
127944,
127818,
9917,
9918,
128685,
128647,
128286,
127946,
127386,
9824,
127344,
127345,
127374,
127358,
127836,
128135,
127832,
127833,
128143,
128145,
127857,
127912,
128107,
127908,
128170,
127860,
128079,
127864,
127867,
127927,
128097,
9749,
128591,
128132,
128588,
128076,
128582,
127383,
10069,
128532,
128542,
128081,
128247,
127872,
128089,
128088,
128087,
128092,
128141,
128098,
128096,
127861,
128525,
128155,
128153,
128156,
128151,
128154,
10084,
128148,
128147,
128152,
128157,
9829,
128159,
128563,
127928,
127866,
128552,
128546,
128557,
128514,
127839,
127835,
128554,
128164,
128127,
128346,
127834,
127919,
127858,
9830,
128142,
9827,
128345,
127935,
127859,
127842,
127841,
9971,
127934,
127874,
127856,
127822,
127936,
127817,
127827,
128138,
128299,
10068,
128684,
127813,
128176,
128186,
128701,
128699,
128702,
128168,
128235,
128238,
128233,
127926,
127925,
127976,
127751,
9986,
128293,
127983,
127984,
127748,
128169,
128251,
128077,
128676,
9973,
128665,
128663,
9742,
128078,
128074,
9994,
128250,
128136,
127937,
9996,
127884,
127471,
127479,
127465,
128075,
9995,
128080,
128694,
127939,
127876,
127877,
128123,
128131,
128111,
127889,
128129,
127878,
127879,
128583,
128134,
128133,
128347,
128105,
128698,
128026,
127806,
128104,
128697,
9664,
127810,
127811,
127809,
9654,
127381,
9800,
9801,
9802,
9803,
9804,
9805,
9806,
9807,
9808,
9809,
9810,
9811,
9934,
128303,
128285,
127385,
127800,
127378,
128044,
128051,
128056,
128177,
128185,
128246,
12951,
12953,
128036,
128119,
128679,
128124,
128017,
128043,
128128,
9729,
127754,
128045,
127535,
128048,
128040,
128031,
128047,
127545,
128059,
128055,
128046,
128054,
128049,
127568,
127542,
127514,
127769,
127543,
9924,
128053,
128018,
9748,
9728,
128067,
128095,
128139,
128068,
128099,
128066,
128052,
128014,
127862,
127544,
128013,
128536,
128538,
128038,
127539,
127541,
128025,
127489,
127801,
128306,
128308,
128307,
11093,
12349,
128524,
128513,
128336,
128540,
128541,
128337,
128530,
128338,
128527,
128531,
128549,
128560,
128166,
128581,
10060,
128339,
128534,
128547,
128562,
128276,
128340,
128341,
128342,
128343,
128070,
128071,
128073,
128072,
9757,
128516,
128522,
128515,
9786,
128521,
127746,
128649,
128344,
128652,
128674,
127752,
128275,
128274,
128273,
127968,
128704,
127814,
127838,
10024,
127775,
10035,
10036,
127843,
128221,
128567,
128214,
128544,
128545,
128162,
128561,
127911,
128024,
127490,
128064
]
output do |item|
if item["event"] == 'favorite'
if item["target_object"]["in_reply_to_status_id"].nil? && item["target_object"]["entities"]["user_mentions"].empty?
id = item["target_object"]["id_str"].to_i
async_e {
# youpy対策
if item["source"]["screen_name"] !~ (/youpy|stsysr/)
twitter.update( item["source"]["screen_name"] +" "+ array[rand(array.length)].chr("UTF-8") )
end
}
end
end
end
end
# https://gist.github.com/stsysr/8131298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment