diff --git a/module/rdd-main.js b/module/rdd-main.js
index c205d802..14721d23 100644
--- a/module/rdd-main.js
+++ b/module/rdd-main.js
@@ -1,5 +1,7 @@
import { SYSTEM_RDD, SYSTEM_SOCKET_ID, RDD_CONFIG, ITEM_TYPES } from "./constants.js"
+const RDD_INFO_MESSAGE_URL = "https://gitea.scriptarium.org/Scriptarium/foundryvtt-reve-de-dragon/src/branch/v13/info-message.html"
+
import { RdDUtility } from "./rdd-utility.js"
import { TMRUtility } from "./tmr-utility.js"
import { TMRRencontres } from "./tmr-rencontres.js"
@@ -250,11 +252,11 @@ export class SystemReveDeDragon {
ITEM_TYPES.jeu,
ITEM_TYPES.race,
ITEM_TYPES.recettecuisine,
- ITEM_TYPES.oeuvre,
+ ITEM_TYPES.oeuvre,
ITEM_TYPES.meditation,
ITEM_TYPES.queue,
- ITEM_TYPES.ombre,
- ITEM_TYPES.souffle,
+ ITEM_TYPES.ombre,
+ ITEM_TYPES.souffle,
ITEM_TYPES.tete,
ITEM_TYPES.casetmr,
ITEM_TYPES.sort,
@@ -414,10 +416,24 @@ export class SystemReveDeDragon {
Vous trouverez quelques informations pour démarrer dans ce document : @Compendium[foundryvtt-reve-de-dragon.rappel-des-regles.7uGrUHGdPu0EmIu2]{Documentation MJ/Joueurs}
La commande /aide dans le chat permet de voir les commandes spécifiques à Rêve de Dragon.
` })
+ // Try to fetch the welcome message from the github repo "welcome-message-ecryme.html"
+ fetch(RDD_INFO_MESSAGE_URL)
+ .then(response => response.text())
+ .then(html => {
+ console.log("Fetched welcome message:", html);
+ ChatMessage.create({
+ user: game.user.id,
+ whisper: [game.user.id],
+ content: html
+ });
+ })
+ .catch(error => {
+ console.error("Error fetching welcome message:", error);
+ });
}
}
- roll(rollData, actors, options){
+ roll(rollData, actors, options) {
RollDialog.create(rollData, actors, options)
}
}