Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shibafu528/3930c9afd8230f3f154bd239403b74bb to your computer and use it in GitHub Desktop.
Save shibafu528/3930c9afd8230f3f154bd239403b74bb 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
command(:open_aclog_of_tweet,
name: 'このTweetのaclogを見る',
condition: Plugin::Command[:HasMessage],
visible: true,
role: :timeline) do |opt|
opt.messages.each do |m|
Gtk::openurl("https://aclog.rhe.jp/i/#{m.id}")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment