Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
選択された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
You can’t perform that action at this time.