updated puckochat and module.json

This commit is contained in:
KungKurt 2025-02-16 03:09:24 +01:00
parent f0d238ffea
commit 0d1834d5ce
2 changed files with 4 additions and 1 deletions

View File

@ -1,11 +1,13 @@
{ {
"id": "puckoprutt", "id": "puckoprutt-foundry-module",
"name": "puckoprutt",
"title": "puckoprutt", "title": "puckoprutt",
"description": "add communication to the puckoprutt web api", "description": "add communication to the puckoprutt web api",
"authors": [ "authors": [
{ "name": "Robin Riis" } { "name": "Robin Riis" }
], ],
"version": "0.1.0", "version": "0.1.0",
"socket": true,
"minimumCoreVersion": 10, "minimumCoreVersion": 10,
"compatability": { "compatability": {
"minimum": "12", "minimum": "12",

View File

@ -10,6 +10,7 @@ Hooks.on("ready", function() {
Hooks.on("chatMessage", (log, message, data) => { Hooks.on("chatMessage", (log, message, data) => {
to_send = ""; to_send = "";
console.log("[puckoprutt] chat!");
if(message[0] === "!") to_send = commands.puckocommand(log, message.slice(1).split(" "), data); if(message[0] === "!") to_send = commands.puckocommand(log, message.slice(1).split(" "), data);
if(to_send !== "") { if(to_send !== "") {