sps_bot 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/sps_bot.rb +4 -3
- metadata +19 -19
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f724861ab476a04036957ca69bc779d063877e31
|
4
|
+
data.tar.gz: 9254a1a77400603fb019b85ae9fde257a90b129e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 589c46941adb436e9940e6e65eb20473c91f07876561ff3703c0aafe4f7dabad54d64e4c4d825381eee25ba5aeb42946c88797dca40f98c86348d556ece28000
|
7
|
+
data.tar.gz: a060973c4985be2805533cfc05caf5fd6325bd7fcabfcf7c0067589875ec05cbff88142696f2169e1c8b573aa26a0ac5d12a5eeb5bb887f3429bf70581cf5da1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/sps_bot.rb
CHANGED
@@ -12,7 +12,8 @@ class SpsBot < SPSChat
|
|
12
12
|
config: nil, typing_mode: false)
|
13
13
|
|
14
14
|
super(host: host, port: port, userid: userid, room: room)
|
15
|
-
@bot =
|
15
|
+
@bot = BotBaseDRbClient.new host: '192.168.4.195', port: '60600'
|
16
|
+
|
16
17
|
@typing_mode = typing_mode
|
17
18
|
|
18
19
|
end
|
@@ -22,11 +23,11 @@ class SpsBot < SPSChat
|
|
22
23
|
if not typing_mode then
|
23
24
|
#msg = 'tim'
|
24
25
|
|
25
|
-
response = @bot.received sender, msg
|
26
|
+
response = @bot.received sender, msg, mode: :chat
|
26
27
|
|
27
28
|
self.send response
|
28
29
|
end
|
29
30
|
|
30
31
|
end
|
31
32
|
|
32
|
-
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sps_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE3MDQyOTEwMzkwM1oXDTE4MDQyOTEwMzkwM1owSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAOHDNyl7Yw/LN7qG5/OBYlh/+BF9ATwW3fIe+I+br192lto72HlWWgYogQiI
|
19
|
+
SS1t9QTt3asYslqBwlLxIt/sVDFMtC4X42jy8jjLwUtTBLKYONnjSIk6KSSkbXJx
|
20
|
+
kHZi1h5TTmFmle59W5ESKkKuzRDDmcNqcxkghM7hWgoPyT4KUTKIM6RZKxJk43rk
|
21
|
+
5fw7wQY+dvHtKjPaGvTNGP5jEh3HFDhvzEy7RKwdaXNg/7BH/EvbBjbDe75ykF+X
|
22
|
+
q0YEAua9OwqUw+9pcDfMKCzpEagd9CVIAxH1Ct1SV8lMYr/w74Jpw5DBQIeCjbGZ
|
23
|
+
1Uet8VBsmNMrDri2VXi114dntgcCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQURDL1yIhsRq3HjitwompBao7sR+swJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
+
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAnlwSBosK
|
27
|
+
4UsjW2PHI6MRmP45/qR2rbHJhJUx5ez72qQXXkz6ecOKTurMb31dxs6hzxpEB6o0
|
28
|
+
aKzpo/M/uZ8Gof50YmWri1cYrHA+XDTU8sNqcErjy5lXwhNHjr+HKj7EBMtG78uy
|
29
|
+
Op8ySI4Ut/9BeQ47hDF4v6vqpjZYZnnZYw8veVXXWHPkI7UzLhz+gZC/CnwUCQa5
|
30
|
+
ml8K8ODZyheTyd3TMgr1to1DrKbjAXxXMXvLTLRzVgSybCOUt+Sof2ldbBseTbOE
|
31
|
+
f8Ifl/TqoEJfoXNEigF2xAVD2jtYhNb/UqIVo7JcUehuDtgwK66NkVSKw+CTe7+S
|
32
|
+
ZDB9AW6rN72tCA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2017-04-29 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sps_chat
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.1.0
|
76
76
|
description:
|
77
|
-
email: james@
|
77
|
+
email: james@jamesrobertson.eu
|
78
78
|
executables: []
|
79
79
|
extensions: []
|
80
80
|
extra_rdoc_files: []
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.6.8
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: The sps_bot gem allows you to chat with your very own bot through the sps_chat
|
metadata.gz.sig
CHANGED
Binary file
|