Sha256: 695d96b87d63d7683fdcdb6d80950a319111f1589260d7f6660d429a279ab83d

Contents?: true

Size: 652 Bytes

Versions: 20

Compression:

Stored size: 652 Bytes

Contents

class SlackSmartBot

    # help: ----------------------------------------------
    # help: `What's new`
    # help:    It will display the last user changes on Slack Smart Bot
    # help: command_id: :whats_new
    # 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\/on_bot\/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

20 entries across 20 versions & 1 rubygems

Version Path
slack-smart-bot-1.15.25 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.15.1 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.15.0 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.14.2 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.14.1 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.14.0 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.13.2 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.13.1 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.13.0 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.9 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.8 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.7 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.6 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.5 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.4 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.3 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.2 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.1 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.12.0 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb
slack-smart-bot-1.11.0 lib/slack/smart-bot/commands/on_bot/general/whats_new.rb