Update internal system with dynamic message
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user