Skip to content

Instantly share code, notes, and snippets.

@nna774
Forked from anonymous/naniittenda_koitu.rb
Last active August 29, 2015 14:07
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 nna774/ca2f424a52631bad9a1b to your computer and use it in GitHub Desktop.
Save nna774/ca2f424a52631bad9a1b to your computer and use it in GitHub Desktop.
Plugin.create :naniittenda_yuyushiki do
command(:naniittenda_yuyushiki,
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