side_tana.rb

  • _1t_
  • 2013/6/27 12:09
  • タグ:
  • タグはありません
#-*- coding: utf-8 -*-
 
Plugin.create(:side_tana) do
  command(:side_tana,
          name: 'たなさんする',
          condition: lambda{ |opt| true },
          visible: true,
          role: :timeline) do |opt|
    opt.messages.each { |m|
      Service.primary.post(:message =>"かえるぴょこぴょこ#{" " * rand(10)}", :replyto => m)
      Service.primary.post(:message =>"あわせてぴょこぴょこ#{" " * rand(10)}", :replyto => m)
    }
  end
end