Update internal system with dynamic message

This commit is contained in:
2025-10-17 15:01:42 +02:00
parent d012f78881
commit a55a038d32
31 changed files with 70 additions and 95 deletions

View File

@@ -5,6 +5,7 @@
*/
/* -------------------------------------------- */
const ECRYME_WELCOME_MESSAGE_URL = "https://www.uberwald.me/gitea/public/fvtt-ecryme/raw/branch/master/welcome-message-ecryme.html"
/* -------------------------------------------- */
// Import Modules
@@ -73,7 +74,7 @@ Hooks.once("init", async function () {
function welcomeMessage() {
if (game.user.isGM) {
// Try to fetch the welcome message from the github repo "welcome-message-ecryme.html"
fetch("https://raw.githubusercontent.com/uberwald/fvtt-ecryme/main/welcome-message-ecryme.html")
fetch(ECRYME_WELCOME_MESSAGE_URL)
.then(response => response.text())
.then(html => {
ChatMessage.create({