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