Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Created October 3, 2012 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save penguin2716/3828101 to your computer and use it in GitHub Desktop.
Save penguin2716/3828101 to your computer and use it in GitHub Desktop.
選択されたTweetのFavstarを見るmikutterプラグイン
# -*- coding: utf-8 -*-
# favstarを開く
Plugin.create :open_favstar_of_tweet do
command(:open_favstar_of_tweet,
name: 'このTweetのFavstarを見る',
condition: Plugin::Command[:HasMessage],
visible: true,
role: :timeline) do |opt|
opt.messages.each do |m|
Gtk::openurl("http://favstar.fm/users/#{m.user.idname}/status/#{m.id}")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment