Huge command system overhaul
This commit is contained in:
@@ -158,23 +158,11 @@ let serverConfig = {
|
||||
|
||||
function initConfigScript() {
|
||||
console.log("[Asshat.Config]: Initializing config script ...");
|
||||
addConfigCommandHandlers();
|
||||
console.log("[Asshat.Config]: Config script initialized!");
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function addConfigCommandHandlers() {
|
||||
console.log("[Asshat.Config]: Adding config command handlers ...");
|
||||
let configCommands = serverCommands.config;
|
||||
for(let i in configCommands) {
|
||||
addCommandHandler(configCommands[i].command, configCommands[i].handlerFunction);
|
||||
}
|
||||
console.log("[Asshat.Config]: Config command handlers added!");
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function loadServerConfig() {
|
||||
let dbConnection = connectToDatabase();
|
||||
if(dbConnection) {
|
||||
|
||||
Reference in New Issue
Block a user