```ruby

module SlackBot
  module Config
    extend self

    ATTRIBUTES = [
        :debug,
        :join_message,
        :token
    ]

    attr_accessor(*Config::ATTRIBUTES)

    self.debug = false
    self.join_message = 'Hello!'
    self.token = 'TOKEN'
  end

  class << self
    def configure
      block_given? ? yield(Config) : Config
    end

    def config
      Config
    end
  end
end```

Change extend self to module_function
user
```ruby
module SlackBot
  module Config
    module_function

    ATTRIBUTES = [
      :debug,
      :join_message,
      :token
    ]

    attr_accessor(*Config::ATTRIBUTES)

    self.debug = false
    self.join_message = 'Hello!'
    self.token = 'TOKEN'
  end

  def configure
    block_given? ? yield(Config) : Config
  end

  def config
    Config
  end
end
```
assistant