Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
matrix-appservice-discord
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneurs
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Deurstann
matrix-appservice-discord
Validations
23bd8372
Valider
23bd8372
rédigé
Il y a 4 ans
par
Christian Paul
Parcourir les fichiers
Options
Téléchargements
Plain Diff
Merge remote-tracking branch 'upstream/develop' into j94/health
parents
b66a6aa7
af084ee7
Branches
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
package.json
+1
-1
1 ajout, 1 suppression
package.json
src/discordas.ts
+4
-4
4 ajouts, 4 suppressions
src/discordas.ts
avec
5 ajouts
et
5 suppressions
package.json
+
1
−
1
Voir le fichier @
23bd8372
{
{
"name"
:
"matrix-appservice-discord"
,
"name"
:
"matrix-appservice-discord"
,
"version"
:
"1.0.0
-rc3
"
,
"version"
:
"1.0.0"
,
"description"
:
"A bridge between Matrix and Discord"
,
"description"
:
"A bridge between Matrix and Discord"
,
"main"
:
"discordas.js"
,
"main"
:
"discordas.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/discordas.ts
+
4
−
4
Voir le fichier @
23bd8372
...
@@ -129,10 +129,6 @@ async function run() {
...
@@ -129,10 +129,6 @@ async function run() {
}
}
const
config
=
new
DiscordBridgeConfig
();
const
config
=
new
DiscordBridgeConfig
();
const
port
=
opts
.
port
||
config
.
bridge
.
port
;
if
(
!
port
)
{
throw
Error
(
"
Port not given in command line or config file
"
);
}
const
readConfig
=
yaml
.
safeLoad
(
fs
.
readFileSync
(
configPath
,
"
utf8
"
));
const
readConfig
=
yaml
.
safeLoad
(
fs
.
readFileSync
(
configPath
,
"
utf8
"
));
if
(
typeof
readConfig
!==
"
object
"
)
{
if
(
typeof
readConfig
!==
"
object
"
)
{
throw
Error
(
"
Config is not of type object
"
);
throw
Error
(
"
Config is not of type object
"
);
...
@@ -140,6 +136,10 @@ async function run() {
...
@@ -140,6 +136,10 @@ async function run() {
config
.
applyConfig
(
readConfig
);
config
.
applyConfig
(
readConfig
);
config
.
applyEnvironmentOverrides
(
process
.
env
);
config
.
applyEnvironmentOverrides
(
process
.
env
);
Log
.
Configure
(
config
.
logging
);
Log
.
Configure
(
config
.
logging
);
const
port
=
opts
.
port
||
config
.
bridge
.
port
;
if
(
!
port
)
{
throw
Error
(
"
Port not given in command line or config file
"
);
}
if
(
config
.
database
.
roomStorePath
||
config
.
database
.
userStorePath
)
{
if
(
config
.
database
.
roomStorePath
||
config
.
database
.
userStorePath
)
{
log
.
error
(
"
The keys 'roomStorePath' and/or 'userStorePath' is still defined in the config.
"
+
log
.
error
(
"
The keys 'roomStorePath' and/or 'userStorePath' is still defined in the config.
"
+
"
Please see docs/bridge-migrations.md on
"
+
"
Please see docs/bridge-migrations.md on
"
+
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter