class Ruboty::Stats::Actions::History
Public Instance Methods
call()
click to toggle source
# File lib/ruboty/stats/actions/history.rb, line 5 def call history = (::Ruboty::Stats.stats(message.robot)[message[:action_name]] || []).sort_by {|h| h[:time] } history_message = history.map {|h| "#{h[:time]} <#{h[:from]}>: #{h[:body]}" }.join($/) message.reply(history_message) end