From eae21a4981b0e8a3d1e6e24590fe99bc194aae3b Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sat, 31 Oct 2015 02:53:33 +0100 Subject: [PATCH] Add fancy "ping" command --- scripts/misc.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/misc.coffee b/scripts/misc.coffee index 094b14b..6b51c07 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -87,3 +87,5 @@ module.exports = (robot) -> robot.hear /(?:ehi|ciao|we|(?:bella(?: li)?)) (?:asjon|assa|assion(?:i|e))/i, (res) -> saluti = ['ciao', 'bella', 'è arrivato', 'eccolooo', 'dimmi', 'weeee', 'ehilà'] res.send res.random(saluti)+' '+res.message.user.name+'!' + robot.respond /(ci sei)?\?/i, (res) -> + res.send res.random ['si, ci sono', 'sono qui', 'si, che c\'è', 'eccomi'] \ No newline at end of file