From 23c9cb6bdd832174e32fff0356b225de1c39ebfa Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 22 Jun 2015 19:19:46 +0200 Subject: [PATCH] Remove send_raw --- scripts/misc.coffee | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/misc.coffee b/scripts/misc.coffee index cac911d..5ae85bb 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -26,7 +26,6 @@ module.exports = (robot) -> - send_raw = require('hubot-tg').functions.send_raw.bind(robot.adapter) # Ringraziamenti ringr = ['prego :)', "non c'è di che", 'faccio solo il mio lavoro', 'no problemo amigo', 'non fate complimenti ;)'] complim = ['bravo', 'grande', 'grandissimo', 'bella' ] @@ -82,6 +81,3 @@ 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 /test nuof/i, (res) -> - send_raw 'get_self', (info) -> res.send 'mi dicono di essere ' + info