lita-bingo 0.1.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
- data/README.md +7 -0
- data/bingo.yml +94 -0
- data/lib/lita-bingo.rb +4 -1
- data/lib/lita/handlers/bingo/designer.rb +19 -0
- data/lib/lita/handlers/bingo/engineer.rb +3 -20
- data/lib/lita/handlers/bingo/load_bingo.rb +8 -0
- data/lib/lita/handlers/bingo/overtime.rb +6 -36
- data/lita-bingo.gemspec +1 -1
- data/spec/lita/handlers/bingo/designer_spec.rb +6 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee063ac20f336bec821a0958cd467037daa0d505
|
4
|
+
data.tar.gz: c63c03ca039a602f89ea980561de2d5bf09843e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9605e9bf71d03aa0410f5436f125606400aff2927251ac657c01dbbadade9f3264d8f3d0237304e71a9972e13f6a25d0ddf197304f632da5fc5cecbff950a404
|
7
|
+
data.tar.gz: c8942fa1b27e03bed85c550a7b63a00949909df8e27b6a3295a9d223a6e917a4004d457e2cf51cf52e131490ec673d3dc1e74e774ff0ff35c960bf3836657574
|
data/README.md
CHANGED
data/bingo.yml
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
bingo:
|
2
|
+
overtime:
|
3
|
+
reply1:
|
4
|
+
- 賽車
|
5
|
+
- 引擎
|
6
|
+
- 繪圖
|
7
|
+
- 網路平台
|
8
|
+
- 航空
|
9
|
+
- 撞球
|
10
|
+
- 三國
|
11
|
+
reply2:
|
12
|
+
- 功能
|
13
|
+
- 問題
|
14
|
+
- 文件
|
15
|
+
- 系統
|
16
|
+
- bug
|
17
|
+
- feature
|
18
|
+
- API
|
19
|
+
- 規格
|
20
|
+
- 子系統
|
21
|
+
- memory
|
22
|
+
- 效能
|
23
|
+
reply3:
|
24
|
+
- 實做
|
25
|
+
- 設計
|
26
|
+
- 除錯
|
27
|
+
- 修正
|
28
|
+
- 支援
|
29
|
+
- 協助
|
30
|
+
- 追蹤
|
31
|
+
- 了解
|
32
|
+
- 蒐集
|
33
|
+
- 測試
|
34
|
+
- 試用
|
35
|
+
engineer:
|
36
|
+
reply1:
|
37
|
+
- 你就當練功
|
38
|
+
- 你就當學經驗
|
39
|
+
- 你就當我都不懂
|
40
|
+
- 你要想未來的分紅
|
41
|
+
- 你要看長遠一點
|
42
|
+
- 你就當練技術
|
43
|
+
- 就當測試
|
44
|
+
reply2:
|
45
|
+
- 幫我修這個 Bug 吧!
|
46
|
+
- 幫我做這個案子吧!
|
47
|
+
- 幫我解這個問題吧!
|
48
|
+
- 幫我回這個客戶吧!
|
49
|
+
- 幫我上這個 App 吧!
|
50
|
+
- 幫我墊這個小錢吧!
|
51
|
+
- 幫我加這個欄位吧!
|
52
|
+
- 幫我偷這些資料吧!
|
53
|
+
designer:
|
54
|
+
reply1:
|
55
|
+
- 這個很簡單吧
|
56
|
+
- 不要騙我不懂
|
57
|
+
- 我們老闆說
|
58
|
+
reply2:
|
59
|
+
- 我小學姪子都會
|
60
|
+
- 要不是當初欠栽培我就自己來
|
61
|
+
- 我十分鐘後就要
|
62
|
+
- 算我半價就好
|
63
|
+
- 先做十個來看看
|
64
|
+
- 這樣也要收錢
|
65
|
+
- 你專業的你知道我要甚麼
|
66
|
+
- 我做過幾百場
|
67
|
+
- 我親戚也做這個你不要騙我
|
68
|
+
- 公司問費用可不可以少個零
|
69
|
+
- 明天可以給我五個版本嗎
|
70
|
+
- 滑鼠動一動就好
|
71
|
+
- 我學過色彩學
|
72
|
+
- 下班前給我
|
73
|
+
- 禮拜六會好嗎
|
74
|
+
- 設計免費可以嗎
|
75
|
+
- 別家設計都用送的不收錢
|
76
|
+
- 我以前很會畫畫
|
77
|
+
- 照我說的做就對了
|
78
|
+
- 要高端大器的感覺
|
79
|
+
- 字要大一點
|
80
|
+
- 留白太多了
|
81
|
+
- 送印再改還來的及吧
|
82
|
+
- 用細明體
|
83
|
+
- 做得好再簽約
|
84
|
+
- 我要印金色但是不要燙金
|
85
|
+
- 沒有預算你提提看
|
86
|
+
- 你這個白太白了
|
87
|
+
- 我不會講但是你知道的
|
88
|
+
- 我當兵也做過美工
|
89
|
+
- 以前也當過學藝股長
|
90
|
+
- 把這邊照片上的人轉成正面
|
91
|
+
- 我只是不會用軟體
|
92
|
+
- 三個月前第一版好像比較好
|
93
|
+
- 圖自己上網找
|
94
|
+
- 原設計說這就是原始檔
|
data/lib/lita-bingo.rb
CHANGED
@@ -4,5 +4,8 @@ Lita.load_locales Dir[File.expand_path(
|
|
4
4
|
File.join("..", "..", "locales", "*.yml"), __FILE__
|
5
5
|
)]
|
6
6
|
|
7
|
+
require "lita/handlers/bingo/load_bingo"
|
8
|
+
|
7
9
|
require "lita/handlers/bingo/engineer"
|
8
|
-
require "lita/handlers/bingo/overtime"
|
10
|
+
require "lita/handlers/bingo/overtime"
|
11
|
+
require "lita/handlers/bingo/designer"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Lita
|
2
|
+
module Lita::Handlers::Bingo
|
3
|
+
class Designer < Lita::Handler
|
4
|
+
include LoadBingo
|
5
|
+
|
6
|
+
route(/設計師|designer|凹/i, :designer, command: true, help: {
|
7
|
+
t("help.designer_key") => t("help.designer_value")
|
8
|
+
})
|
9
|
+
|
10
|
+
def designer(response)
|
11
|
+
reply1 = bingo(:designer, :reply1)
|
12
|
+
reply2 = bingo(:designer, :reply2)
|
13
|
+
|
14
|
+
response.reply "#{reply1}#{reply2}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
Lita.register_handler(Designer)
|
18
|
+
end
|
19
|
+
end
|
@@ -1,32 +1,15 @@
|
|
1
1
|
module Lita
|
2
2
|
module Lita::Handlers::Bingo
|
3
3
|
class Engineer < Lita::Handler
|
4
|
+
include LoadBingo
|
4
5
|
|
5
6
|
route(/工程師|engineer|凹/i, :engineer, command: true, help: {
|
6
7
|
t("help.engineer_key") => t("help.engineer_value")
|
7
8
|
})
|
8
9
|
|
9
10
|
def engineer(response)
|
10
|
-
reply1 =
|
11
|
-
|
12
|
-
你就當學經驗
|
13
|
-
你就當我都不懂
|
14
|
-
你要想未來的分紅
|
15
|
-
你要看長遠一點
|
16
|
-
你就當練技術
|
17
|
-
你就當測試
|
18
|
-
).sample
|
19
|
-
|
20
|
-
reply2 = %w(
|
21
|
-
幫我修這個Bug吧!
|
22
|
-
幫我做這個案子吧!
|
23
|
-
幫我解這個問題吧!
|
24
|
-
幫我回這個客戶吧!
|
25
|
-
幫我上這個App吧!
|
26
|
-
幫我墊這個小錢吧!
|
27
|
-
幫我加這個欄位吧!
|
28
|
-
幫我偷這些資料吧!
|
29
|
-
).sample
|
11
|
+
reply1 = bingo(:engineer, :reply1)
|
12
|
+
reply2 = bingo(:engineer, :reply2)
|
30
13
|
|
31
14
|
response.reply "#{reply1}#{reply2}"
|
32
15
|
end
|
@@ -1,49 +1,19 @@
|
|
1
1
|
module Lita
|
2
2
|
module Lita::Handlers::Bingo
|
3
3
|
class Overtime < Lita::Handler
|
4
|
+
include LoadBingo
|
4
5
|
|
5
6
|
route(/加班|overtime/i, :overtime, command: true, help: {
|
6
7
|
t("help.overtime_key") => t("help.overtime_value")
|
7
8
|
})
|
8
9
|
|
9
10
|
def overtime(response)
|
10
|
-
reply1 = %w(
|
11
|
-
賽車
|
12
|
-
引擎
|
13
|
-
繪圖
|
14
|
-
網路平台
|
15
|
-
航空
|
16
|
-
撞球
|
17
|
-
三國
|
18
|
-
).sample
|
19
11
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
\ bug\
|
26
|
-
\ feature\
|
27
|
-
\ API\
|
28
|
-
規格
|
29
|
-
子系統
|
30
|
-
\ memory\
|
31
|
-
效能
|
32
|
-
).sample
|
33
|
-
reply3 = %w(
|
34
|
-
實做
|
35
|
-
設計
|
36
|
-
除錯
|
37
|
-
修正
|
38
|
-
支援
|
39
|
-
協助
|
40
|
-
追蹤
|
41
|
-
了解
|
42
|
-
蒐集
|
43
|
-
測試
|
44
|
-
試用
|
45
|
-
).sample
|
46
|
-
response.reply "#{reply1}#{reply2}#{reply3}"
|
12
|
+
reply1 = bingo(:overtime, :reply1)
|
13
|
+
reply2 = bingo(:overtime, :reply2)
|
14
|
+
reply3 = bingo(:overtime, :reply3)
|
15
|
+
|
16
|
+
response.reply "今天我要做 #{reply1}#{reply2}#{reply3}"
|
47
17
|
end
|
48
18
|
end
|
49
19
|
Lita.register_handler(Overtime)
|
data/lita-bingo.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-bingo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sammy Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -121,11 +121,15 @@ files:
|
|
121
121
|
- Gemfile
|
122
122
|
- README.md
|
123
123
|
- Rakefile
|
124
|
+
- bingo.yml
|
124
125
|
- lib/lita-bingo.rb
|
126
|
+
- lib/lita/handlers/bingo/designer.rb
|
125
127
|
- lib/lita/handlers/bingo/engineer.rb
|
128
|
+
- lib/lita/handlers/bingo/load_bingo.rb
|
126
129
|
- lib/lita/handlers/bingo/overtime.rb
|
127
130
|
- lita-bingo.gemspec
|
128
131
|
- locales/en.yml
|
132
|
+
- spec/lita/handlers/bingo/designer_spec.rb
|
129
133
|
- spec/lita/handlers/bingo/engineer_spec.rb
|
130
134
|
- spec/lita/handlers/bingo/overtime_spec.rb
|
131
135
|
- spec/spec_helper.rb
|
@@ -155,6 +159,7 @@ signing_key:
|
|
155
159
|
specification_version: 4
|
156
160
|
summary: Lita Bindo handler
|
157
161
|
test_files:
|
162
|
+
- spec/lita/handlers/bingo/designer_spec.rb
|
158
163
|
- spec/lita/handlers/bingo/engineer_spec.rb
|
159
164
|
- spec/lita/handlers/bingo/overtime_spec.rb
|
160
165
|
- spec/spec_helper.rb
|