Sha256: f68c0810f3e56869324e152c8a2d5c48d62dba1395de94e295cc65c612102cc7

Contents?: true

Size: 170 Bytes

Versions: 8

Compression:

Stored size: 170 Bytes

Contents

require 'slack-ruby-bot'

class Bot < SlackRubyBot::Bot
  command 'ping' do |client, data, _match|
    client.say(text: 'pong', channel: data.channel)
  end
end

Bot.run

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-bot-0.9.0 examples/minimal/pongbot.rb
slack-ruby-bot-0.8.2 examples/minimal/pongbot.rb
slack-ruby-bot-0.8.1 examples/minimal/pongbot.rb
slack-ruby-bot-0.8.0 examples/minimal/pongbot.rb
slack-ruby-bot-0.7.0 examples/minimal/pongbot.rb
slack-ruby-bot-0.6.2 examples/minimal/pongbot.rb
slack-ruby-bot-0.6.1 examples/minimal/pongbot.rb
slack-ruby-bot-0.6.0 examples/minimal/pongbot.rb