slack-smart-bot 0.6.3 → 0.6.4

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/slack-smart-bot.rb +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a1d9b4bd841702898c4e1d360d02feddb1925978384737ca004465c99d142b4
4
- data.tar.gz: 7dcf3a38e80192839a80a661cfac41ce07e8a4e8e5727fbd01a983d7198b9e50
3
+ metadata.gz: c738a714de597258d063c1fd2bdfb14e37e6b8ca5f02a3afb8cb3d8dee569650
4
+ data.tar.gz: d244f43a25c00c4e69c3b536b555f59512d8917463761a437b2bd7c9184c0a54
5
5
  SHA512:
6
- metadata.gz: 402028ab7ccdbaceca81ea0e3c41f05abe63e460911c302891f7b62166115adb64be63a4f9fd7565b5a5b1b075d0f5eb6ba5549d8ee88550438f722638feb76a
7
- data.tar.gz: b5c20e75ddb9fa8c180893dd436116a2b3bfa85d104b6a91479b8ebc18e64c70e233be18e77858e5600427a829cb073c44594780e30d9ff615dea1195d63864d
6
+ metadata.gz: c403df2cf49b2704b4a46531b5688aff20bd9be0168b41a813a3cccf8aaa8e236ef86864c8bd81d941edc69b393d43a746ffdafc3f7446e87de9353436c08f0d
7
+ data.tar.gz: 91fde7afd111859df4ca46d1eb97e7623e426e82075ccde8d6c7e13cf1796de350c633a9a4c34c194898534dce141677e53f44ecc5707c71928258dbf6237232
@@ -186,6 +186,11 @@ class SlackSmartBot
186
186
  channel_rules = $2
187
187
  channel_rules_name = $3
188
188
  command = $4
189
+ if command.size >= 2 and
190
+ ((command[0] == "`" and command[-1] == "`") or (command[0] == "*" and command[-1] == "*") or (command[0] == "_" and command[-1] == "_"))
191
+ command = command[1..-2]
192
+ end
193
+
189
194
  command = "!" + command unless command[0] == "!"
190
195
  if @channels_id[CHANNEL] == channel_rules #to be treated only on the bot of the requested channel
191
196
  dest = data.channel
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: 0.6.3
4
+ version: 0.6.4
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-06-06 00:00:00.000000000 Z
11
+ date: 2019-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-ruby-client