Fixed wrong config path for custom commands
This commit is contained in:
1 parent
89f153de4d
commit
914a470116
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user