Fixed wrong config path for custom commands

This commit is contained in:
Zaid Abdulla committed 2014-03-27 16:37:59 +03:00
1 parent 89f153de4d
commit 914a470116
1 file changed
+2 -2
+2 -2
View File
@@ -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