Sha256: 8c281b709be3a2507539e99e286d83fbecc84908a761f5d16364a5ffe35d7a51

Contents?: true

Size: 609 Bytes

Versions: 3

Compression:

Stored size: 609 Bytes

Contents

class SlackSmartBot

    # help: ----------------------------------------------
    # help: `What's new`
    # help:    It will display the last user changes on Slack Smart Bot
    # help:
    def whats_new(user, dest, dchannel, from, display_name)
      if @status == :on
        save_stats(__method__)
        whats_new_file = (__FILE__).gsub(/lib\/slack\/smart-bot\/commands\/general\/whats_new\.rb$/, "whats_new.txt")
        whats_new = File.read(whats_new_file)
        whats_new.split(/^\-\-\-\-\-\-+$/).each do |msg|
            respond msg
            sleep 0.3
        end
      end
    end
  end
  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-smart-bot-1.10.0 lib/slack/smart-bot/commands/general/whats_new.rb
slack-smart-bot-1.9.2 lib/slack/smart-bot/commands/general/whats_new.rb
slack-smart-bot-1.9.1 lib/slack/smart-bot/commands/general/whats_new.rb