Sha256: baea599f328a17e475a23fad26040376704dd1f92de3ff449982a4b4d09353f5

Contents?: true

Size: 488 Bytes

Versions: 22

Compression:

Stored size: 488 Bytes

Contents

class Help < SlackRubyBot::Commands::Base
  HELP = <<-EOS.freeze
```
I am your friendly slack-ruby-bot-server, here to help.

General
-------

help               - get this helpful message
whoami             - print your username

```
  EOS
  def self.call(client, data, _match)
    client.say(channel: data.channel, text: [HELP, SlackRubyBotServer::INFO].join("\n"))
    client.say(channel: data.channel, gif: 'help')
    logger.info "HELP: #{client.owner}, user=#{data.user}"
  end
end

Version data entries

22 entries across 11 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.12.1 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.12.0 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.11.1 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.11.0 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.10.0 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.10.0 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.9.0 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.9.0 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.8.3 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.8.3 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.8.2 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.8.2 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.8.1 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.8.1 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.8.0 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.8.0 sample_apps/sample_app_mongoid/commands/help.rb