From 99e91c3679a27a4d895e5afc4cbc8c4473dc401f Mon Sep 17 00:00:00 2001 From: KungKurt Date: Sun, 23 Feb 2025 14:34:46 +0100 Subject: [PATCH] updated to version 0.1.12 --- module.json | 2 +- scripts/main.js | 1 + scripts/puckoapi/puckoapi.js | 12 +++++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/module.json b/module.json index 624bf3c..2dc76f3 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "authors": [ { "name": "Robin Riis" } ], - "version": "0.1.11", + "version": "0.1.12", "socket": true, "minimumCoreVersion": 10, "compatibility": { diff --git a/scripts/main.js b/scripts/main.js index 41f6e83..f5ac8e7 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -12,6 +12,7 @@ Hooks.on("init", async function() { Hooks.on("ready", async function() { console.log("[puckoprutt] Hello Ready"); + ui.notifications.notify("Puckoprutt greets you to the world of: " + game.world.title) }); Hooks.on("chatMessage", (log, message, data) => { diff --git a/scripts/puckoapi/puckoapi.js b/scripts/puckoapi/puckoapi.js index 3331ea4..b7448b6 100644 --- a/scripts/puckoapi/puckoapi.js +++ b/scripts/puckoapi/puckoapi.js @@ -1,10 +1,12 @@ -export class PuckoPruttApi { +class PuckoPruttApi { constructor() { - this.apiUrl = "api.puckoprutt.tech" - this.schema = this.apiUrl + "/schema" + this.apiUrl = "https://api.puckoprutt.tech" + this.schema = this.apiUrl + "/schema/" } dagens_lunch(spider) { - return fetch(this.apiUrl + "/dagens_lunch/" + spider, {method: "GET"}); + return fetch(this.apiUrl + "/dagens_lunch/" + spider + "/", {method: "GET"}); } -} \ No newline at end of file +} + +export default PuckoPruttApi; \ No newline at end of file