updated to version 0.1.19
This commit is contained in:
parent
a5ac5cde0e
commit
0cfb7c5fe7
@ -6,7 +6,7 @@
|
|||||||
"authors": [
|
"authors": [
|
||||||
{ "name": "Robin Riis" }
|
{ "name": "Robin Riis" }
|
||||||
],
|
],
|
||||||
"version": "0.1.18",
|
"version": "0.1.19",
|
||||||
"socket": true,
|
"socket": true,
|
||||||
"minimumCoreVersion": 10,
|
"minimumCoreVersion": 10,
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
|
|||||||
@ -11,7 +11,8 @@ export class PuckoPruttApi {
|
|||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return await response.json();
|
const json = await response.json();
|
||||||
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
dagens_lunch(spider) {
|
dagens_lunch(spider) {
|
||||||
|
|||||||
@ -3,7 +3,7 @@ function test(user) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dagens(user, message) {
|
function dagens(user, message) {
|
||||||
let week = game.modules.get("puckoprutt-foundry-module").api.dagens_lunch(message[1]);
|
let week = await game.modules.get("puckoprutt-foundry-module").api.dagens_lunch(message[1]);
|
||||||
if (typeof week !== 'object') {
|
if (typeof week !== 'object') {
|
||||||
return "could not fetch "+message[1];
|
return "could not fetch "+message[1];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user