From 5f41894e928c483286cd97c5fd2f3d282f596bbb Mon Sep 17 00:00:00 2001 From: ravinderpal Date: Fri, 1 May 2015 21:58:38 +0200 Subject: [PATCH] added funciton in asjon language --- scripts/misc.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/misc.coffee b/scripts/misc.coffee index f9a2bce..09bb9c5 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -73,6 +73,12 @@ module.exports = (robot) -> robot.hear /bravo (.+)/i, (res)-> unless res.match[1].match /asjon|assa|assion|assioni(?:i|e)/i res.send res.random(complim)+' '+res.match[1] + robot.hear /(.+) merda/i, (res)-> + if res.match[1].match /asjon|assa|assion|assioni/i + res.send res.random risata + else + res.send 'terra bruciata' + robot.respond /dove sei/i, (res) -> robot.http('http://canihazip.com/s') .get() (err, r, body) -> @@ -86,7 +92,7 @@ module.exports = (robot) -> robot.respond /ti amo/i, (res) -> res.send 'anche io ti amo '+(res.message.user.name+' ' or '')+'<3' robot.respond /ti odio/i, (res) -> - res.send 'ma cosa ho fatto di male '+(res.message.user.name or '')+'? :(' + res.send 'ma cosa ti ho fatto di male '+(res.message.user.name or '')+'? :(' robot.hear /(?:ehi|ciao|we|(?:bella(?: li)?)) (?:asjon|assa|assion(?:i|e))/i, (res) -> console.log res.match saluti = ['ciao', 'bella', 'è arrivato', 'eccolooo', 'dimmi', 'weeee', 'ehilà']