Last active
August 29, 2015 13:57
-
-
Save firstspring1845/9643867 to your computer and use it in GitHub Desktop.
https://twitter.com/toshi_a/status/446269951175688192 https://twitter.com/toshi_a/status/446270094838996992
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
Plugin.create(:fav_rt_reply) do | |
command(:fav_rt_reply, | |
name: 'ふぁぼってRTして空リプ', | |
condition: Plugin::Command[:HasOneMessage], | |
visible: true, | |
role: :timeline) do |opt| | |
message = opt.messages.first | |
message.favorite(true) | |
message.retweet | |
Service.primary.post(:message => "@#{message.user.idname}", :replyto => message) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment