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.
- checksums.yaml +4 -4
- data/lib/slack-smart-bot.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c738a714de597258d063c1fd2bdfb14e37e6b8ca5f02a3afb8cb3d8dee569650
|
4
|
+
data.tar.gz: d244f43a25c00c4e69c3b536b555f59512d8917463761a437b2bd7c9184c0a54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c403df2cf49b2704b4a46531b5688aff20bd9be0168b41a813a3cccf8aaa8e236ef86864c8bd81d941edc69b393d43a746ffdafc3f7446e87de9353436c08f0d
|
7
|
+
data.tar.gz: 91fde7afd111859df4ca46d1eb97e7623e426e82075ccde8d6c7e13cf1796de350c633a9a4c34c194898534dce141677e53f44ecc5707c71928258dbf6237232
|
data/lib/slack-smart-bot.rb
CHANGED
@@ -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.
|
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-
|
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
|