-
Notifications
You must be signed in to change notification settings - Fork 1
/
higanworks-higanbot-talk.coffee
92 lines (70 loc) · 2.76 KB
/
higanworks-higanbot-talk.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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
# Description:
# 幾つかの日本語に反応するよ
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# None
#
# Notes:
# 幾つかの日本語に反応するよ
#
# Author:
# MATSUMOTO, Ryosuke
module.exports = (robot) ->
robot.hear /おーい/i, (msg) ->
msg.send "なに?"
robot.hear /よ$/i, (msg) ->
words = ["そうだね!", "はい?", "それは違うんじゃないかな"]
msg.send msg.random words
robot.hear /よね$/i, (msg) ->
msg.send "そうかな?"
robot.hear /やん$/i, (msg) ->
msg.send "なんでやねん!"
robot.hear /ねむい|眠い|ネムイ/i, (msg) ->
msg.send "ねろ"
robot.hear /つかれた|疲れた/i, (msg) ->
msg.send "コーヒー飲め"
robot.hear /error|broken|fail/i, (msg) ->
msg.send "/(vv)\ 失敗です"
robot.hear /fixed|success|passed/i, (msg) ->
msg.send "v(^^)v OKです"
robot.hear /test|てすと|テスト/i, (msg) ->
msg.send "v(oo)v テストですか!"
robot.hear /^うん$/i, (msg) ->
msg.send "なるほど!"
robot.hear /ありがとう/i, (msg) ->
msg.send "どういたしまして!"
robot.hear /^はい/i, (msg) ->
words = ["良い返事だ", "はいだけはしっかりしてるね", "ほんとにわかってる?"]
msg.send msg.random words
robot.hear /おはよ/i, (msg) ->
words = ["おはようございます!", "いまごろ?", "帰っていいよ"]
msg.send msg.random words
robot.hear /higanくん|higan君/i, (msg) ->
words = ["おっす", "なに?", "気安く呼ばないでもらえますか"]
msg.send msg.random words
robot.hear /?$/i, (msg) ->
words = ["どうだろ", "いいと思います!", "それは違うんじゃないのかな?", "!!??", ".........!?"]
msg.send msg.random words
robot.hear /orz$/i, (msg) ->
msg.send "イキロ"
robot.hear /ー$/i, (msg) ->
words = ["語尾をのばすと馬鹿に見える", "語尾をのばすと柔らかい印象あたえますよね", "伸ばすなー"]
msg.send msg.random words
robot.hear /ごめん|すまん|すいま|すみま/i, (msg) ->
words = ["気にしないで!", "謝れば良いと思ってる?", "あーっと心にもない言葉!", "聞こえないなぁ?"]
msg.send msg.random words
robot.hear /w$|w$|笑/i, (msg) ->
words = ["笑うなー", "www", "面白くないよ", "w"]
msg.send msg.random words
robot.hear /お願い/i, (msg) ->
words = ["嫌", "了解しました!", "断固断る!", "ggrks"]
msg.send msg.random words
robot.hear /意識高い/i, (msg) ->
words = ["たかいたかーい", "意識高い系です", "意識高めていくぅっっ!!", "尊敬します"]
msg.send msg.random words