diff --git a/module.json b/module.json index 79cf3f0..624bf3c 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "authors": [ { "name": "Robin Riis" } ], - "version": "0.1.10", + "version": "0.1.11", "socket": true, "minimumCoreVersion": 10, "compatibility": { diff --git a/scripts/main.js b/scripts/main.js index faab1a7..41f6e83 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -1,9 +1,13 @@ import { PuckoPruttApi } from "./puckoapi/puckoapi.js" import { puckocommand } from "./puckochat/commands.js" +let puckoprutt = null; +Hooks.once("setup", async function() { + puckoprutt = new PuckoPruttApi(); +}); + Hooks.on("init", async function() { console.log("[puckoprutt] Hello Init"); - var puckoprutt = new PuckoPruttApi(); }); Hooks.on("ready", async function() {