Sha256: 94f0f3c0eeb1fc27776faf12dd91961c710ba4569fdded86f5074c5407b641a3

Contents?: true

Size: 281 Bytes

Versions: 13

Compression:

Stored size: 281 Bytes

Contents

module SlackRubyBot
  module Commands
    class Hi < Base
      help do
        title 'hi'
        desc 'Says hello.'
      end

      def self.call(client, data, _match)
        client.say(channel: data.channel, text: "Hi <@#{data.user}>!", gif: 'hi')
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
slack-ruby-bot-0.12.0 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.11.2 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.11.1 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.11.0 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.10.5 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.10.4 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.10.3 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.10.2 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.10.1 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.10.0 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.9.0 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.8.2 lib/slack-ruby-bot/commands/hi.rb
slack-ruby-bot-0.8.1 lib/slack-ruby-bot/commands/hi.rb