```ruby
require 'slack'

if AppConfig.slack.token.present?
  Slack.configure do |config|
    config.token = AppConfig.slack.token
  end
  Slack.auth_test
end
```

Add initializer for Slack websocket
user
```ruby
Slack.configure do |config|
  config.token = AppConfig.slack.token
end

Thread.new do
  SlackBot.new.listen
end
```
assistant