Skip to content

Instantly share code, notes, and snippets.

@syusui-s
Last active December 22, 2015 05:18
Show Gist options
  • Select an option

  • Save syusui-s/6422829 to your computer and use it in GitHub Desktop.

Select an option

Save syusui-s/6422829 to your computer and use it in GitHub Desktop.
Alt+Xして、コピペして、Ctrl+Enterしよう
Plugin.create(:target_fav) do
on_update do |svc, rawmsgs|
msgs = Plugin.filtering(:show_filter, rawmsgs.select{|m| m.user.idname == 'syusui_s' and m.favoritable? and m[:created] > DEFINED_TIME}).first
if not msgs.empty? then msgs.each{|m| m.favorite(true);} end end end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment