Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
「いまのなし」ってつぶやいた人の直前のツイートをRTするmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :auto_retweet_previous_tweet do
tweet_before = {}
on_appear do |ms|
ms.each do |m|
if tweet_before[m.user]
tweet_before[m.user].retweet if m.to_s == "いまのなし"
end
tweet_before[m.user] = m
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.