Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RTされたツイートだけを抽出するタブを追加するmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :extract_retweets do
tab(:extract_retweets, "RTされたツイートを抽出します") do
set_icon MUI::Skin.get("retweet.png")
timeline(:extract_retweets)
end
on_appear do |ms|
ms.each do |m|
if m.retweet?
m.retweet_source_d.next { |s|
timeline(:extract_retweets) << s
}
end
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.