You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: slack.rb
    path of file: ./repos/janky/lib/janky/chat_service
    
    the code of the file until where you have to start completion: require "slack"

module Janky
  module ChatService
    class Slack
      def initialize(settings)
        team
    
      def speak(message, room_id, options = {})
        room_name = ChatService.room_name(room_id) || room_id

        if options[:build].present?
          @client.post_message(nil, room_name, {attachments: attachments(message, options[:build])})
        else
          @client.post_message(message, room_name, options)
        end