Urukhay 0 Posted January 10, 2017 (edited) Command like the: modules.exports = { "cmdt": (player) => { var f = require("../mysqlSaver"); f.mysqlSave(player); } } "mysqlSave" function is not called. Edited January 10, 2017 by Urukhay Share this post Link to post Share on other sites
Captien 131 Posted January 10, 2017 can you specify if mysqlSaver is a Npm or a File? If a file do var f = require("./mqsqlSaver.js"); If a npm just do var f = require("mysqlSave"); 1 Share this post Link to post Share on other sites
Urukhay 0 Posted January 11, 2017 (edited) But why the node.js service had called variant above? I use the require (with .js) in the index.js and it not works. It's as if requires are not supported. Edited January 11, 2017 by Urukhay Share this post Link to post Share on other sites
Urukhay 0 Posted January 12, 2017 (edited) The problem has been solved. Edited January 12, 2017 by Urukhay Share this post Link to post Share on other sites