enerbot-slack 1.0.6 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7060b6859b55907fa4ab9fc489418b4dd878e4d5c8fd3647f256e8f19cbb7187
4
- data.tar.gz: b31f59335f87d506d4c41dd91f820c9e47854789b0a006ddb536578267671811
3
+ metadata.gz: fd5f81cfcf063df19f8c7a81d2f7aa5ac4fb09616b6f6787f942022de674db2b
4
+ data.tar.gz: c625947d3752de63e96054094d9c43dfae0c23cc39a819e7ec9d45868f93d293
5
5
  SHA512:
6
- metadata.gz: f6e5283a3068ec99b480e6382ac1c46d3caffe3cb9a2d5a5f1dd4abe20b0ff70ccc22f7087ef137b9a0cb0084dcc0c4bb5470ed2a116e5a64e74d75b855fb950
7
- data.tar.gz: 93691d4af630bbdea879029486d8ae04cb9474d93733a44fb2172cbea4f2d201abcd3b3816f584eeeb621102c7b3a4541010c1059f0234f084978de0262505ca
6
+ metadata.gz: 5c55e4e1b15f91dfadf36cadd504959e5f87edb34bc12201fed1ecabae33df48d88c0ef854ab1936cd7e0e0668728ace6fe8b05779eaa41f347c491602814aeb
7
+ data.tar.gz: 85ce31947e88ce189dcd3f53c8fefe56ee2e4d69caadd3c8c0cc3987e9fcdc77a89ea240a5ecc898996b9daec3b08480a787292cde89e5bd5cfbc010be21b5b8
@@ -10,7 +10,7 @@ module SlackConsole
10
10
  data.username
11
11
  else
12
12
  user = get_user_info(data.user)
13
- user.name
13
+ user.display_name
14
14
  end
15
15
  text = data.text
16
16
  channel_p = conversation_info(data.channel)
@@ -67,6 +67,15 @@ module SlackSearch
67
67
  false
68
68
  end
69
69
 
70
+ def conversation_replies(channel = @channel_id, ts)
71
+ client = configure_client
72
+ info = client.conversations_replies channel: channel, ts: ts
73
+ info.messages
74
+ rescue Slack::Web::Api::Errors::SlackError => e
75
+ print e.message
76
+ false
77
+ end
78
+
70
79
  def conversation_members(channel, limit = 60)
71
80
  client = configure_client
72
81
  info = client.conversations_members channel: channel, limit: limit
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enerbot-slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Adonis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-09 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-websocket