enerbot-slack 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/modules/slack_search.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b3e151c3ec70f9de804864c9145f72fd485e80d118177386a3bca5c348c9ca4
|
|
4
|
+
data.tar.gz: 8122abbd97f52fc11c54a56bf9b231e7f1e9bbef55e45d16fb7164c5bb4a5a2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd373bacf59b68aec6438ddcb7f639b45edfe7a42f0acfac8910720a1bc181a91834b6718a14fbb6f5722c34e3450c493331d892f2525ed9d90b3bb08e666bb4
|
|
7
|
+
data.tar.gz: a87707b7f6ed940666d27a649bcca3a4a9f970d6182c4acd292ad757d31acf620c6bded90cde7114115db4fcd0bb94c553b5350cb730f248fce4b5a1e68e8e52
|
data/lib/modules/slack_search.rb
CHANGED
|
@@ -58,6 +58,15 @@ module SlackSearch
|
|
|
58
58
|
false
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
def conversation_permalink(channel = @channel_id, ts)
|
|
62
|
+
client = configure_client
|
|
63
|
+
response = client.chat_getPermalink channel: channel, message_ts: ts
|
|
64
|
+
response.permalink
|
|
65
|
+
rescue Slack::Web::Api::Errors::SlackError => e
|
|
66
|
+
print e.message
|
|
67
|
+
false
|
|
68
|
+
end
|
|
69
|
+
|
|
61
70
|
def conversation_info(channel = @channel_id)
|
|
62
71
|
client = configure_client
|
|
63
72
|
info = client.conversations_info channel: channel
|