```ruby
require 'slack'

Slack.configure do |config|
  config.token = ENV['slack_api_token']
end

client = Slack.realtime

client.on :team_join do |data|
  puts 'New User Joined'
  welcome = "Welcome to slashrocket, <@#{data['user']['id']}>! Type `/rocket` for a quick tour of our channels. :simple_smile:"
  options = { channel: '#general', text: welcome, as_user: true }
  Slack.chat_postMessage(options)
  puts 'Posted Welcome Message'
end

Thread.new do
  client.start
end
```

Add descriptive console messages for join events
user
```ruby
require 'slack'

Slack.configure do |config|
  config.token = ENV['slack_api_token']
end

client = Slack.realtime

client.on :team_join do |data|
  puts "New User, #{data['user']['name']}, Joined"
  welcome = "Welcome to slashrocket, <@#{data['user']['id']}>! Type `/rocket` for a quick tour of our channels. :simple_smile:"
  options = { channel: '#general', text: welcome, as_user: true }
  Slack.chat_postMessage(options)
  puts "Welcomed #{data['user']['name']}"
end

Thread.new do
  client.start
end
```
assistant