lib/slack-ruby-bot/hooks/hello.rb in slack-ruby-bot-0.6.2 vs lib/slack-ruby-bot/hooks/hello.rb in slack-ruby-bot-0.7.0
- old
+ new
@@ -2,10 +2,11 @@
module Hooks
module Hello
extend Base
def hello(client, _data)
- logger.info "Successfully connected to #{client.url || 'slack'}."
+ return unless client && client.team
+ logger.info "Successfully connected to https://#{client.team.domain}.slack.com."
end
end
end
end