From 914a4701167fea6b212382420c97d233edde5053 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Thu, 27 Mar 2014 16:37:59 +0300 Subject: [PATCH] Fixed wrong config path for custom commands --- lib/custom-commands.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/custom-commands.coffee b/lib/custom-commands.coffee index 6dff4f3..290a65f 100644 --- a/lib/custom-commands.coffee +++ b/lib/custom-commands.coffee @@ -7,13 +7,13 @@ exports.execute = (deviceId, command, callback) -> f = args.shift() c = args.shift() - file = require "./config/custom_commands/#{f}" + file = require "../config/custom_commands/#{f}" file[c](deviceId, args.join(' '), callback) exports.getFileCommands = (filename) -> commands = [] - f = require("./config/custom_commands/#{filename}") + f = require("../config/custom_commands/#{filename}") for k,v of f commands.push(k) return commands