updated to version 0.1.29
This commit is contained in:
parent
8cb6032ad3
commit
14560bc86d
@ -6,7 +6,7 @@
|
|||||||
"authors": [
|
"authors": [
|
||||||
{ "name": "Robin Riis" }
|
{ "name": "Robin Riis" }
|
||||||
],
|
],
|
||||||
"version": "0.1.28",
|
"version": "0.1.29",
|
||||||
"socket": true,
|
"socket": true,
|
||||||
"minimumCoreVersion": 10,
|
"minimumCoreVersion": 10,
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ export class PuckoPruttApi {
|
|||||||
return await foundry.utils.fetchJsonWithTimeout(this.apiUrl + url)
|
return await foundry.utils.fetchJsonWithTimeout(this.apiUrl + url)
|
||||||
}
|
}
|
||||||
|
|
||||||
async dagens_lunch(spider) {
|
dagens_lunch(spider) {
|
||||||
return this._fetch_json("/spiders/dagens_lunch/" + spider + "/?format=json");
|
return this._fetch_json("/spiders/dagens_lunch/" + spider + "/?format=json");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3,7 +3,7 @@ async function test(user) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function dagens(user, message) {
|
async function dagens(user, message) {
|
||||||
let week = await game.modules.get("puckoprutt-foundry-module").api.dagens_lunch(message[1]);
|
let week = 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