class Arisaid::Bots

Public Class Methods

bot_valid_attributes() click to toggle source
# File lib/arisaid/bots.rb, line 16
def bot_valid_attributes
  %i(
    name
  )
end

Public Instance Methods

remote!() click to toggle source
# File lib/arisaid/bots.rb, line 7
def remote!
  @remote = bots!.map { |user|
    hash = user.to_h.slice(*self.class.bot_valid_attributes)
    hash[:real] = user.real_name if user.real_name && !user.real_name.empty?
    hash.stringify_keys
  }
end