Added handler for rate cards

This commit is contained in:
skyanth
2017-03-20 15:34:13 +01:00
parent 738f25ba16
commit 1e1cc54208
2 changed files with 131 additions and 0 deletions
+7
View File
@@ -192,6 +192,13 @@ module.exports = (robot) ->
cmd = "bash/handler_invoice";
run_cmd cmd, args, (text) -> msg.send text.replace("\n","");
robot.respond /ratecard (.*)/i, id:'chatops.ratecard', (msg) ->
msg.match[0] = msg.match[0].replace(/^[a-z0-9]+$/i);
msg.match.shift();
args = msg.match[0].split(" ");
cmd = "bash/handler_ratecard";
run_cmd cmd, args, (text) -> msg.send text.replace("\n","");
robot.respond /quickscope (.*)/i, id:'chatops.quickscope', (msg) ->
msg.match[0] = msg.match[0].replace(/^[a-z0-9]+$/i);
msg.match.shift();