Skip to content

Instantly share code, notes, and snippets.

Created October 16, 2014 14:26
Show Gist options
  • Save anonymous/f2da41888cc6956c836c to your computer and use it in GitHub Desktop.
Save anonymous/f2da41888cc6956c836c to your computer and use it in GitHub Desktop.
Twitterには何言ってんだこいつボタンが必要
Plugin.create :naniittenda_koitu do
command(:naniittenda_koitu,
name: '何言ってんだこいつ',
condition: lambda{ |opt| opt.messages.size == 1 },
visible: true,
role: :timeline) do |opt|
Service.primary.post message: "何言ってんだこいつ #{opt.messages.first.parma_link}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment