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