Sha256: 9b91b0150f7baa2c5da2ddaf15e20b8202b37a7739783bf3fa7c97b1fd34f363

Contents?: true

Size: 486 Bytes

Versions: 9

Compression:

Stored size: 486 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

9 entries across 7 versions & 1 rubygems

Version Path
slack-ruby-bot-server-0.6.1 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.6.1 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.6.0 sample_apps/sample_app_activerecord/commands/help.rb
slack-ruby-bot-server-0.6.0 sample_apps/sample_app_mongoid/commands/help.rb
slack-ruby-bot-server-0.5.0 sample_app/commands/help.rb
slack-ruby-bot-server-0.4.0 sample_app/commands/help.rb
slack-ruby-bot-server-0.3.1 sample_app/commands/help.rb
slack-ruby-bot-server-0.3.0 sample_app/commands/help.rb
slack-ruby-bot-server-0.2.0 sample_app/commands/help.rb