ruboty-good-night 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/good_night/version.rb +1 -1
- data/lib/ruboty/handlers/good_night.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72a7ea2f3fae515abec2a9a5da0ed82d88a80b19
|
4
|
+
data.tar.gz: 74565378a572ffc7bda2710e94a71a854db78baf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97595aa03b6367f365fa96e3c8fc14cc274c46ade58f54601dec8275127567c97f2d10df2b9f1edb227316af28bc44d1f935de9326284f7aaf12644d96b0035
|
7
|
+
data.tar.gz: df26bbb23377a01e7eb431fa48454ebfe98e05179631faededb26042c5eb2e41937b7e406a637cb58888012fd81e4c97bfc5da8e39c79eec1a7a43a0b71adda8
|
@@ -7,7 +7,7 @@ module Ruboty
|
|
7
7
|
|
8
8
|
def initialize(*args)
|
9
9
|
super
|
10
|
-
if
|
10
|
+
if robot.brain.data[BRAIN_NAMESPACE]
|
11
11
|
room.reply('おはようございます')
|
12
12
|
trap_message(room)
|
13
13
|
end
|
@@ -21,12 +21,12 @@ module Ruboty
|
|
21
21
|
private
|
22
22
|
|
23
23
|
def save(message)
|
24
|
-
robot.brain.data[BRAIN_NAMESPACE] = message
|
24
|
+
robot.brain.data[BRAIN_NAMESPACE] = message.original.except(:robot)
|
25
25
|
trap_message(message)
|
26
26
|
end
|
27
27
|
|
28
28
|
def room
|
29
|
-
robot.brain.data[BRAIN_NAMESPACE]
|
29
|
+
Ruboty::Message.new(robot.brain.data[BRAIN_NAMESPACE].merge(robot: robot))
|
30
30
|
end
|
31
31
|
|
32
32
|
def trap_message(message)
|