def record
      if File.exist? DIFILE
        CSV.open(DIFILE, 'a') { |csv| csv << [@user, @message, @time] }
      else
        CSV.open(DIFILE, 'a') do |csv|
          csv << %w[user message time]
          csv << [@user, @message, @time]
        end
      end
      puts '✓'.green
    rescue StandardError => e
      abort 'Broken'.magenta + e
    end
def record
      if File.exist? DIFILE
        CSV.open(DIFILE, 'a') { |csv| csv << [@user, @message, @time] }
      else
        CSV.open(DIFILE, 'a') do |csv|
          csv << %w[user message time]
          csv << [@user, @message, @time]
        end
      end
      puts '✓'.green
    rescue StandardError => e
      abort 'Broken'.magenta + e
    end
def record if File . exist? DIFILE CSV . open ( DIFILE , 'a' ) { | csv | csv << [ @user , @message , @time ] } else CSV . open ( DIFILE , 'a' ) do | csv | csv << %w[ user message time ] csv << [ @user , @message , @time ] end end puts '✓'.g r een rescue StandardError => e abort 'Broken' . magenta + e end
generates new recording as csv row
 to new or existing DIANE file
generates new recording as csv row to new or existing DIANE file