diff --git a/config/config.sample.yaml b/config/config.sample.yaml index 79150b033b586da092661d9127e991dbfa0188af..9f66f8f35ebdd7697fd0fb10b6ce5d8cc095c504 100644 --- a/config/config.sample.yaml +++ b/config/config.sample.yaml @@ -8,6 +8,8 @@ bridge: # This should be your publically facing URL because Discord may use it to # fetch media from the media store. homeserverUrl: "http://localhost:8008" + # The TCP port on which the appservice runs on. + port: 9005 # Interval at which to process users in the 'presence queue'. If you have # 5 users, one user will be processed every 500 milliseconds according to the # value below. This has a minimum value of 250. diff --git a/config/config.schema.yaml b/config/config.schema.yaml index ea46af921b91ff575f98b7adf6fde252d0f68a4d..39427476032e864240785f972383166ecf9da31b 100644 --- a/config/config.schema.yaml +++ b/config/config.schema.yaml @@ -10,6 +10,8 @@ properties: type: "string" homeserverUrl: type: "string" + port: + type: "number" presenceInterval: type: "number" disablePresence: diff --git a/package.json b/package.json index 7607859e17789e29dc5164cabe4bdb79e282d81d..d7b2bb91cdf0c87ca6f9ddf27e3c937c9417a458 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "coverage": "nyc mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts", "build": "tsc", "postinstall": "npm run build", - "start": "npm run-script build && node ./build/src/discordas.js -p 9995 -c config.yaml", - "debug": "npm run-script build && node --inspect ./build/src/discordas.js -p 9005 -c config.yaml", + "start": "npm run-script build && node ./build/src/discordas.js -c config.yaml", + "debug": "npm run-script build && node --inspect ./build/src/discordas.js -c config.yaml", "addbot": "node ./build/tools/addbot.js", "adminme": "node ./build/tools/adminme.js", "usertool": "node ./build/tools/userClientTools.js",