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",
|
"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",
|
||||||
|
|||||||
@ -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 !== "") {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user