lita-against-humanity 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/against_humanity.rb +6 -1
- data/lita-against-humanity.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb27a8a890422231613eeb275c854b415fecc7fe
|
4
|
+
data.tar.gz: 16ed5a0df14ee0858bb7d13f33742cdde300cabf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 669cd093bffeab1c1bb2ed8a0faab4a99e22ad371b69dac9737cac811c1b0b8326c8dfba298a8702f76af6ad71f8ff6ff652bbef415786746f07f3fdd9eaf980
|
7
|
+
data.tar.gz: cc24d10c07aa80ad3cb9f0bcf9913ccdd0eba1611f3d92213deb429c86bf97ccdd075ca2417cabf697d5c25e43470838aaa4dfa62e6486f9ca265d62f7bcd78f
|
@@ -749,13 +749,18 @@ module Lita
|
|
749
749
|
"Zeus's sexual appetites."
|
750
750
|
]
|
751
751
|
|
752
|
-
route /humanity/, :
|
752
|
+
route /humanity choice/, :choice, command: true, help: { "lita humanity choice" => "Lita can only take you some of the way" }
|
753
|
+
route "humanity", :go, command: true, help: { "lita humanity" => "Lita will play a random pair of cards from Cards Against Humanity" }
|
753
754
|
|
754
755
|
def go(response)
|
755
756
|
response.reply(BLACK_CARDS.sample)
|
756
757
|
response.reply(WHITE_CARDS.sample)
|
757
758
|
end
|
758
759
|
|
760
|
+
def choice(response)
|
761
|
+
response.reply(BLACK_CARDS.sample)
|
762
|
+
response.reply("A) #{WHITE_CARDS.sample}; B) #{WHITE_CARDS.sample}; C) #{WHITE_CARDS.sample}")
|
763
|
+
end
|
759
764
|
end
|
760
765
|
|
761
766
|
Lita.register_handler(AgainstHumanity)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-against-humanity"
|
3
|
-
spec.version = "0.
|
3
|
+
spec.version = "0.2.0"
|
4
4
|
spec.authors = ["John O'Brien"]
|
5
5
|
spec.email = ["strayjohno@gmail.com"]
|
6
6
|
spec.description = "Plays a random pair of cards from Cards Against Humanity"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-against-humanity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John O'Brien
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|