examples/hi_real_time/hi.rb in slack-ruby-client-0.1.0 vs examples/hi_real_time/hi.rb in slack-ruby-client-0.2.0
- old
+ new
@@ -6,10 +6,10 @@
end
client = Slack::RealTime::Client.new
client.on :hello do
- puts 'Successfully connected.'
+ puts "Successfully connected, welcome '#{client.self['name']}' to the '#{client.team['name']}' team at https://#{client.team['domain']}.slack.com."
end
client.on :message do |data|
puts data