Sha256: 7a1ca8b6a9eb2b70ebd82128455ce879e7db3a8e3b0e827b8526463eef41033e

Contents?: true

Size: 246 Bytes

Versions: 6

Compression:

Stored size: 246 Bytes

Contents

# frozen_string_literal: true

class Whoami < SlackRubyBot::Commands::Base
  def self.call(client, data, _match)
    client.say(channel: data.channel, text: "<@#{data.user}>")
    logger.info "UNAME: #{client.owner}, user=#{data.user}"
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-bot-server-rtm-0.2.0 sample_apps/sample_app_activerecord/commands/whoami.rb
slack-ruby-bot-server-rtm-0.2.0 sample_apps/sample_app_mongoid/commands/whoami.rb
slack-ruby-bot-server-rtm-0.1.1 sample_apps/sample_app_activerecord/commands/whoami.rb
slack-ruby-bot-server-rtm-0.1.1 sample_apps/sample_app_mongoid/commands/whoami.rb
slack-ruby-bot-server-rtm-0.1.0 sample_apps/sample_app_activerecord/commands/whoami.rb
slack-ruby-bot-server-rtm-0.1.0 sample_apps/sample_app_mongoid/commands/whoami.rb