enerbot-slack 1.0.7 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/modules/slack_search.rb +18 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9badb515811b91a7d22a7634c6ba933df55f08c716245bdbc5cb3142857b25f9
4
- data.tar.gz: b3ec646e1d658a2073878c8eca9da1941ae1d898b12d4633bce1bea24618e558
3
+ metadata.gz: 8b3e151c3ec70f9de804864c9145f72fd485e80d118177386a3bca5c348c9ca4
4
+ data.tar.gz: 8122abbd97f52fc11c54a56bf9b231e7f1e9bbef55e45d16fb7164c5bb4a5a2d
5
5
  SHA512:
6
- metadata.gz: 125a8fc6a94085edf5b7682f8270718871ed7aa99a12beb5a02b10c1dbefa738b6bdb701fc8a2cb339a9040815157643d81ded226a1a6589a90756d689113b33
7
- data.tar.gz: 5a205c46cf2437ef49eeaa805d2cb159542e1d28aa964de61c71c63b7cfa8b1245c02644b5168f5fca6d92c27364e3d4733f98a25d3a7716d24be3355d2c3c7d
6
+ metadata.gz: cd373bacf59b68aec6438ddcb7f639b45edfe7a42f0acfac8910720a1bc181a91834b6718a14fbb6f5722c34e3450c493331d892f2525ed9d90b3bb08e666bb4
7
+ data.tar.gz: a87707b7f6ed940666d27a649bcca3a4a9f970d6182c4acd292ad757d31acf620c6bded90cde7114115db4fcd0bb94c553b5350cb730f248fce4b5a1e68e8e52
@@ -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
@@ -67,6 +76,15 @@ module SlackSearch
67
76
  false
68
77
  end
69
78
 
79
+ def conversation_replies(channel = @channel_id, ts)
80
+ client = configure_client
81
+ info = client.conversations_replies channel: channel, ts: ts
82
+ info.messages
83
+ rescue Slack::Web::Api::Errors::SlackError => e
84
+ print e.message
85
+ false
86
+ end
87
+
70
88
  def conversation_members(channel, limit = 60)
71
89
  client = configure_client
72
90
  info = client.conversations_members channel: channel, limit: limit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enerbot-slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Adonis