wit_bot 0.5.3.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wit_bot/bot/base.rb +3 -3
- data/lib/wit_bot/version.rb +1 -1
- 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: e2586281b8eb9c9f67307fcb2e58e4b9212cdf48
|
4
|
+
data.tar.gz: 315a2158db2a27ce6c31003213ff74299ffdfede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2239d5b546cabb8b9ba9ac3d8b5cc7937931e77587fd18022e2a78203f4e879994146c0ce19af80daec7d2b9d7e76796ca8af179a10b5b91932f7a6359599d7c
|
7
|
+
data.tar.gz: e9eb3e9bbd2bf3b7982dbc6bd5927b87cbb97a02cf769e44dfbede62ed59b6f1d677678442f3370339275062c1a35f6b5ece38bb29b56482a1957d81befdbda6
|
data/lib/wit_bot/bot/base.rb
CHANGED
@@ -6,10 +6,10 @@ module WitBot
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class << self
|
9
|
-
|
9
|
+
@intents = []
|
10
10
|
def intents(*args)
|
11
11
|
if args.empty?
|
12
|
-
|
12
|
+
@intents.map! do |intent|
|
13
13
|
if intent.is_a? WitBot::WitModel::Intent
|
14
14
|
intent
|
15
15
|
else
|
@@ -17,7 +17,7 @@ module WitBot
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
else
|
20
|
-
|
20
|
+
@intents.concat args
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
data/lib/wit_bot/version.rb
CHANGED