From 85d1dadb62b2916cc2d86f48e92af918a77e34af Mon Sep 17 00:00:00 2001 From: bonbon0605 Date: Sat, 22 Mar 2014 17:05:31 +0900 Subject: [PATCH 1/5] add thank you command in ping.coffee --- scripts/ping.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ping.coffee b/scripts/ping.coffee index 39c7188..5bcba62 100644 --- a/scripts/ping.coffee +++ b/scripts/ping.coffee @@ -24,3 +24,5 @@ module.exports = (robot) -> msg.send "Goodbye, cruel world." process.exit 0 + robot.respond /THANK YOU$/i, (msg) -> + msg.send "You're welcome." From 784e7214c0392f1f83f271af87b521425b10c2b5 Mon Sep 17 00:00:00 2001 From: bonbon0605 Date: Sat, 22 Mar 2014 17:07:31 +0900 Subject: [PATCH 2/5] =?UTF-8?q?add=20=E3=81=82=E3=82=8A=E3=81=8C=E3=81=A8?= =?UTF-8?q?=E3=81=86=20command=20in=20ping.coffee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ping.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/ping.coffee b/scripts/ping.coffee index 5bcba62..6ec45eb 100644 --- a/scripts/ping.coffee +++ b/scripts/ping.coffee @@ -26,3 +26,6 @@ module.exports = (robot) -> robot.respond /THANK YOU$/i, (msg) -> msg.send "You're welcome." + + robot.respond /ありがとう$/i, (msg) -> + msg.send "どういたしまして" From b186985d984c66bb6ee9c4ead89b5dd88d5c7b86 Mon Sep 17 00:00:00 2001 From: bonbon0605 Date: Sun, 23 Mar 2014 23:29:07 +0900 Subject: [PATCH 3/5] =?UTF-8?q?modify=20=E3=81=82=E3=82=8A=E3=81=8C?= =?UTF-8?q?=E3=81=A8=E3=81=86=20command=20to=20adapt=20to=20various=20expr?= =?UTF-8?q?essions=20in=20ping.coffee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ping.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ping.coffee b/scripts/ping.coffee index 6ec45eb..00de335 100644 --- a/scripts/ping.coffee +++ b/scripts/ping.coffee @@ -27,5 +27,5 @@ module.exports = (robot) -> robot.respond /THANK YOU$/i, (msg) -> msg.send "You're welcome." - robot.respond /ありがとう$/i, (msg) -> + robot.respond /ありがと(.*)/i, (msg) -> msg.send "どういたしまして" From 48b025c993986b85722527bd8daf49f4595e52c5 Mon Sep 17 00:00:00 2001 From: bonbon0605 Date: Sun, 23 Mar 2014 23:31:37 +0900 Subject: [PATCH 4/5] =?UTF-8?q?modify=20return=20messsage=20of=20=E3=81=82?= =?UTF-8?q?=E3=82=8A=E3=81=8C=E3=81=A8=E3=81=86=20command=20in=20ping.coff?= =?UTF-8?q?ee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ping.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ping.coffee b/scripts/ping.coffee index 00de335..8ac2d50 100644 --- a/scripts/ping.coffee +++ b/scripts/ping.coffee @@ -28,4 +28,4 @@ module.exports = (robot) -> msg.send "You're welcome." robot.respond /ありがと(.*)/i, (msg) -> - msg.send "どういたしまして" + msg.send "どういたしまして〜" From 974590cd733d840238b7abd65e3098707ef9aabc Mon Sep 17 00:00:00 2001 From: bonbon0605 Date: Mon, 24 Mar 2014 08:35:28 +0900 Subject: [PATCH 5/5] =?UTF-8?q?modify=20regular=20expression=20of=20?= =?UTF-8?q?=E3=81=82=E3=82=8A=E3=81=8C=E3=81=A8=E3=81=86=20command=20in=20?= =?UTF-8?q?ping.coffee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ping.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ping.coffee b/scripts/ping.coffee index 8ac2d50..2b87ae8 100644 --- a/scripts/ping.coffee +++ b/scripts/ping.coffee @@ -27,5 +27,5 @@ module.exports = (robot) -> robot.respond /THANK YOU$/i, (msg) -> msg.send "You're welcome." - robot.respond /ありがと(.*)/i, (msg) -> + robot.respond /ありがと(?:.*)/i, (msg) -> msg.send "どういたしまして〜"