lita-heroku 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/heroku.rb +2 -2
- data/lita-heroku.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 574d975a1bfb3575f122c04971ec965b831d677e
|
4
|
+
data.tar.gz: 046be01a18c987513835b3017050caf90298a2ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7a237e20e79d36cd090f765405c1721bfe4edd68a4a21e1532de4a0727aa7a119ebd678b1070a3a9bb7bd67017794db19b74c8015a1909d1b4885a9ce33ffdb
|
7
|
+
data.tar.gz: f2fdc909793b1f0fe32c39a13fa675a7254eda138093f094d8ba8b444ec835d86b5995f9c7d755e18937e5dda8c6ffc3465b2b47e4106ef5740b9e802e89593e
|
data/lib/lita/handlers/heroku.rb
CHANGED
@@ -99,9 +99,9 @@ module Lita
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def get_last_message channel
|
102
|
-
|
102
|
+
channel_type = channel[0] == "D" ? 'im' : 'channels'
|
103
103
|
msg = robot.chat_service.api.send(
|
104
|
-
:call_api, "
|
104
|
+
:call_api, "#{channel_type}.history", { channel: channel, count: 1 } # Probably need to filter
|
105
105
|
)
|
106
106
|
[msg["messages"][0]["ts"], msg["messages"][0]["text"]]
|
107
107
|
end
|
data/lita-heroku.gemspec
CHANGED