Sha256: d38cea9bf456d50a03f715dce61295f3e527a309937af49deeae8484e2d5e8c3

Contents?: true

Size: 331 Bytes

Versions: 9

Compression:

Stored size: 331 Bytes

Contents

class SlackSmartBot
  def update(channel, ts, text)
    result = true
    begin
      resp = client.web_client.chat_update(channel: channel, as_user: true, ts: ts, text: text)
      result = resp.ok.to_s == 'true'
    rescue Exception => exc
      result = false
      @logger.fatal exc.inspect
    end
    return result
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slack-smart-bot-1.15.25 lib/slack/smart-bot/comm/update.rb
slack-smart-bot-1.15.1 lib/slack/smart-bot/comm/update.rb
slack-smart-bot-1.15.0 lib/slack/smart-bot/comm/update.rb
slack-smart-bot-1.14.2 lib/slack/smart-bot/comm/update.rb
slack-smart-bot-1.14.1 lib/slack/smart-bot/comm/update.rb
slack-smart-bot-1.14.0 lib/slack/smart-bot/comm/update.rb
slack-smart-bot-1.13.2 lib/slack/smart-bot/comm/update.rb
slack-smart-bot-1.13.1 lib/slack/smart-bot/comm/update.rb
slack-smart-bot-1.13.0 lib/slack/smart-bot/comm/update.rb