Sha256: 253f938db30c2789d5736a22d479b1078cc2f02f47fff8fa62855b01a17bbb8a
Contents?: true
Size: 560 Bytes
Versions: 4
Compression:
Stored size: 560 Bytes
Contents
module Ruboty::Actions::Ragoon class Notification < ::Ruboty::Actions::Base include ::Ruboty::Actions::Ragoon def call notifications = ::Ruboty::Ragoon::Notification.new(message.robot.brain) notifications.retrieve unless notifications.empty? reply = [":new: #{notifications.unread_count}件の新着通知があります #{notifications.list_url}"] if private? reply += notifications.list.find_all(&:unread).map(&:format) end message.reply(reply.join("\n")) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems