updated puckochat and module.json
This commit is contained in:
parent
f0d238ffea
commit
0d1834d5ce
@ -1,11 +1,13 @@
|
||||
{
|
||||
"id": "puckoprutt",
|
||||
"id": "puckoprutt-foundry-module",
|
||||
"name": "puckoprutt",
|
||||
"title": "puckoprutt",
|
||||
"description": "add communication to the puckoprutt web api",
|
||||
"authors": [
|
||||
{ "name": "Robin Riis" }
|
||||
],
|
||||
"version": "0.1.0",
|
||||
"socket": true,
|
||||
"minimumCoreVersion": 10,
|
||||
"compatability": {
|
||||
"minimum": "12",
|
||||
|
||||
@ -10,6 +10,7 @@ Hooks.on("ready", function() {
|
||||
|
||||
Hooks.on("chatMessage", (log, message, data) => {
|
||||
to_send = "";
|
||||
console.log("[puckoprutt] chat!");
|
||||
if(message[0] === "!") to_send = commands.puckocommand(log, message.slice(1).split(" "), data);
|
||||
|
||||
if(to_send !== "") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user