Sha256: 8264a1f15ecc48512ed25b13f6bf0c5902137e776d022424e11710d22a3ef75b

Contents?: true

Size: 446 Bytes

Versions: 20

Compression:

Stored size: 446 Bytes

Contents

class SlackSmartBot
    def answer(from = Thread.current[:user].name, dest = Thread.current[:dest])
        if @answer.key?(from)
            if Thread.current[:on_thread]
                dest = Thread.current[:thread_ts]
            end
            if @answer[from].key?(dest)
                return @answer[from][dest]
            else
                return ''
            end
        else
            return ''
        end
    end
  
  end
  

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
slack-smart-bot-1.14.2 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.14.1 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.14.0 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.13.2 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.13.1 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.13.0 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.9 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.8 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.7 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.6 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.5 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.4 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.3 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.2 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.1 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.12.0 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.11.0 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.10.0 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.9.2 lib/slack/smart-bot/utils/answer.rb
slack-smart-bot-1.9.1 lib/slack/smart-bot/utils/answer.rb