Antwort auf: Tagtraum

Für das was ich gerade mache / noch vor habe, ist es mir aber zu aufwendig, so komplett auf Objektorientierung umzubauen. Auch wenn das bei dir hübsch aussieht.



file main.js
Code:
var App = {};
var App.chatCommands = {};  //definieren wir leeren container

App.onAppStart = function() {
//die app ist gestartet
}


require('admincommands.js');


file admincommands.js
Code:
App.chatCommands.admincommand = function(user, params, cmd) {
   //diese funktion wird bei /admincommand ausgeführt
};


_________________________
/apps install 30559674.ChannelMaster