slack-smart-bot 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/slack/smart-bot/commands/on_bot/repl.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c58734c44f90b171c957d0f48c6c2c6353278d39666676667c774557fb8625a0
|
|
4
|
+
data.tar.gz: 4a4799485e58730145388bbc1772c842d3abaed0135c5bc4b1337d2dad91bc58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8b9c2d19aff0aad05b3a594b050999d72ed354861e303ea9dc32fff00816042ee838bc7ce33045e418e2f51e3193912bd1599e8743aed9746d79b69da671a1d
|
|
7
|
+
data.tar.gz: eaeaad86fea1bdfd9dad6d7e70ef649b593deab8f1a9099c8c3d89d6a53d6ee5280ce5bef267311a18a85cb4b98a700ebc20d592df288a30a07227cdadc2b2f1
|
|
@@ -101,14 +101,14 @@ class SlackSmartBot
|
|
|
101
101
|
eval(\"require \'nice_http\'\" , bindme' + serialt + ')
|
|
102
102
|
|
|
103
103
|
file_input_repl = File.open(\"' + Dir.pwd + '/repl/' + @channel_id + '/' + session_name + '.input\", \"r\")
|
|
104
|
+
if File.exist?(\"./.smart-bot-repl\")
|
|
105
|
+
begin
|
|
106
|
+
eval(File.read(\"./.smart-bot-repl\"), bindme' + serialt + ')
|
|
107
|
+
rescue Exception => resp_repl
|
|
108
|
+
end
|
|
109
|
+
end
|
|
104
110
|
while true do
|
|
105
111
|
sleep 0.2
|
|
106
|
-
if File.exist?(\"./.smart-bot-repl\")
|
|
107
|
-
begin
|
|
108
|
-
eval(File.read(\"./.smart-bot-repl\"), bindme' + serialt + ')
|
|
109
|
-
rescue Exception => resp_repl
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
112
|
code_to_run_repl = file_input_repl.read
|
|
113
113
|
if code_to_run_repl.to_s!=''
|
|
114
114
|
if code_to_run_repl.to_s.match?(/^quit$/i) or
|