slack-smart-bot 1.4.1 → 1.4.2

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: d67db01b571c542e66d72812e3a928bc3077e3decf3cb517dfe0cc2648c3c6ad
4
- data.tar.gz: 1002d186b7db6c1fadbc1ce016664584af53f95e508a932aea080b8ca5a681ae
3
+ metadata.gz: bda51f447fbc1c9c5823394eaac44f3968123bef25323416b8130e6e649101a7
4
+ data.tar.gz: acda814dd8201c8df2d642b552bfa8ba541fc05e1e77703e74efe017030679d0
5
5
  SHA512:
6
- metadata.gz: 226240c6a8cce706189f37cf2de8b8467369b3ed428b39a6144d655f90058c50b1f4bc2bd4b4b12e8333e753b7f7c60624ca999b9b0fda5ff13b49e965c07963
7
- data.tar.gz: 716dda07932fe0636af2e29c5a55b36fd595103bf935596fde7a9985236362c7217f1e702f1128294df1a07fa7685dffeaaf8825cae0f720bbbab6a63b7175ee
6
+ metadata.gz: d3324d7b3d8247cfa9204593b9de1935fafec3483da7c490a707e899ffbf14e3b4307ed13f98e876a06f2702ab25ab5aad6ea943f29afdb4a315ae022522adce
7
+ data.tar.gz: e30c6d392bbf72e48bb330cd7e91444d5ef438ccc6906c9377ea8dc8acdb552349c4642416f1ffe383d03f2a1c35f1e37f80324c24cd3114f58e19388d2651aa
@@ -36,7 +36,13 @@ class SlackSmartBot
36
36
  else
37
37
  config[:path] = '.'
38
38
  end
39
- config[:silent] = false unless config.key?(:silent)
39
+ if ENV['BOT_SILENT'].to_s == 'true'
40
+ config[:silent] = true
41
+ elsif ENV['BOT_SILENT'].to_s == 'false'
42
+ config[:silent] = false
43
+ else
44
+ config[:silent] = false unless config.key?(:silent)
45
+ end
40
46
  config[:testing] = false unless config.key?(:testing)
41
47
  config[:simulate] = false unless config.key?(:simulate)
42
48
  if config.path.to_s!='' and config.file.to_s==''
@@ -58,7 +58,7 @@ class SlackSmartBot
58
58
  respond "Copy the bot folder to your cloud location and run `ruby #{config.file} \"#{channel}\" \"#{admin_users.join(",")}\" \"#{rules_file}\" on&`", dest
59
59
  else
60
60
  t = Thread.new do
61
- `ruby #{config.file_path} \"#{channel}\" \"#{admin_users.join(",")}\" \"#{rules_file}\" on`
61
+ `BOT_SILENT=false ruby #{config.file_path} \"#{channel}\" \"#{admin_users.join(",")}\" \"#{rules_file}\" on`
62
62
  end
63
63
  end
64
64
  @bots_created[channel_id] = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-smart-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Ruiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-09 00:00:00.000000000 Z
11
+ date: 2019-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-ruby-client