updated to version 0.1.12

This commit is contained in:
KungKurt 2025-02-23 14:34:46 +01:00
parent 9d1975e24e
commit 99e91c3679
3 changed files with 9 additions and 6 deletions

View File

@ -6,7 +6,7 @@
"authors": [ "authors": [
{ "name": "Robin Riis" } { "name": "Robin Riis" }
], ],
"version": "0.1.11", "version": "0.1.12",
"socket": true, "socket": true,
"minimumCoreVersion": 10, "minimumCoreVersion": 10,
"compatibility": { "compatibility": {

View File

@ -12,6 +12,7 @@ Hooks.on("init", async function() {
Hooks.on("ready", async function() { Hooks.on("ready", async function() {
console.log("[puckoprutt] Hello Ready"); console.log("[puckoprutt] Hello Ready");
ui.notifications.notify("Puckoprutt greets you to the world of: " + game.world.title)
}); });
Hooks.on("chatMessage", (log, message, data) => { Hooks.on("chatMessage", (log, message, data) => {

View File

@ -1,10 +1,12 @@
export class PuckoPruttApi { class PuckoPruttApi {
constructor() { constructor() {
this.apiUrl = "api.puckoprutt.tech" this.apiUrl = "https://api.puckoprutt.tech"
this.schema = this.apiUrl + "/schema" this.schema = this.apiUrl + "/schema/"
} }
dagens_lunch(spider) { dagens_lunch(spider) {
return fetch(this.apiUrl + "/dagens_lunch/" + spider, {method: "GET"}); return fetch(this.apiUrl + "/dagens_lunch/" + spider + "/", {method: "GET"});
} }
} }
export default PuckoPruttApi;