Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 2aaaab02 rédigé par Will Hunt's avatar Will Hunt Validation de GitHub
Parcourir les fichiers

Merge pull request #634 from jaller94/patch-1

Set port in the config, not in npm scripts
parents ce5c8f9c f802ec79
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -8,6 +8,8 @@ bridge: ...@@ -8,6 +8,8 @@ bridge:
# This should be your publically facing URL because Discord may use it to # This should be your publically facing URL because Discord may use it to
# fetch media from the media store. # fetch media from the media store.
homeserverUrl: "http://localhost:8008" 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 # 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 # 5 users, one user will be processed every 500 milliseconds according to the
# value below. This has a minimum value of 250. # value below. This has a minimum value of 250.
......
...@@ -10,6 +10,8 @@ properties: ...@@ -10,6 +10,8 @@ properties:
type: "string" type: "string"
homeserverUrl: homeserverUrl:
type: "string" type: "string"
port:
type: "number"
presenceInterval: presenceInterval:
type: "number" type: "number"
disablePresence: disablePresence:
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
"coverage": "nyc mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts", "coverage": "nyc mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts",
"build": "tsc", "build": "tsc",
"postinstall": "npm run build", "postinstall": "npm run build",
"start": "npm run-script build && node ./build/src/discordas.js -p 9995 -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 -p 9005 -c config.yaml", "debug": "npm run-script build && node --inspect ./build/src/discordas.js -c config.yaml",
"addbot": "node ./build/tools/addbot.js", "addbot": "node ./build/tools/addbot.js",
"adminme": "node ./build/tools/adminme.js", "adminme": "node ./build/tools/adminme.js",
"usertool": "node ./build/tools/userClientTools.js", "usertool": "node ./build/tools/userClientTools.js",
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter