summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorArcensoth <arcensoth@gmail.com>2018-02-23 16:18:13 -0500
committerArcensoth <arcensoth@gmail.com>2018-02-23 16:18:13 -0500
commite865b399823174cc73ea480c661994a3ea3e736b (patch)
tree6d303f1e0c7600fa742193e612ee2acd246088e7
parentIgnore node installation files (diff)
downloadshulker-e865b399823174cc73ea480c661994a3ea3e736b.tar.gz
shulker-e865b399823174cc73ea480c661994a3ea3e736b.zip
Allow config file to be passed as a parameter
-rw-r--r--index.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.js b/index.js
index 9f22887..0d5aed4 100644
--- a/index.js
+++ b/index.js
@@ -6,7 +6,13 @@ var Rcon = require("./lib/rcon.js");
 var express = require("express");
 var app = express();
 var http = require("http").Server(app);
-var c = require("./config.json");
+
+var cfile = (process.argv.length > 2) ? process.argv[2] : "./config.json"
+
+console.log("[INFO] Using configuration file:", cfile);
+
+var c = require(cfile);
+
 var debug = c.DEBUG;
 var shulker = new Discord.Client();
 
p if exportAtom can't find a text partJune McEnroe Oops. But also why the hell are people making multipart/alternative with only text/html inside? 2020-04-29Highlight diff/index/---/+++ lines of patches as wellJune McEnroe 2020-04-29Turn URLs into HTML linksJune McEnroe 2020-04-28Clean up html.cJune McEnroe 2020-04-27Style groups in recipientsJune McEnroe Can't actually test this oops. 2020-04-27Clean up export.cJune McEnroe 2020-04-27Clean up decode.cJune McEnroe 2020-04-26Free orderJune McEnroe Oops 2. 2020-04-26Clean up atom.c and fix base URLsJune McEnroe Base URL should not be URL escaped! 2020-04-26Clean up archive.cJune McEnroe 2020-04-26Add -q to exit non-zero on early exitJune McEnroe 2020-04-26Rearrange some of archive.hJune McEnroe 2020-04-26Free part.parts.ptrJune McEnroe Oops. 2020-04-26Rename part->id to part->contentIDJune McEnroe Disambiguate with messageID. 2020-04-26Iterate through nested multiparts to find content for AtomJune McEnroe Also fixes content for multipart/signed. 2020-04-26Include Cc address in reply mailtosJune McEnroe 2020-04-26Use %R for RFC numbers in STANDARDS sectionJune McEnroe 2020-04-26Add mailto spec to STANDARDSJune McEnroe 2020-04-26Increase space between nav itemsJune McEnroe 2020-04-26Add mailto address for the archiveJune McEnroe 2020-04-26Put dates on new lines in indexJune McEnroe 2020-04-26Include <> around Message-Id in mailto: URLsJune McEnroe 2020-04-26Add link to index on thread pagesJune McEnroe 2020-04-26Fall back to Content-Type name parameter for attachmentsJune McEnroe 2020-04-26Remove margins in article.message headerJune McEnroe 2020-04-26Generate index.atomJune McEnroe 2020-04-26Generate XHTML content in Atom entriesJune McEnroe 2020-04-25Style index pageJune McEnroe 2020-04-25Render index.htmlJune McEnroe 2020-04-25Wrap <summary> replies count in <data>June McEnroe 2020-04-25Accumulate thread envelopes before concatenationJune McEnroe 2020-04-24Free envelope in concatDataJune McEnroe 2020-04-24Use replyTo address in mailto:June McEnroe 2020-04-23Wrap quoted lines in <q>June McEnroe