updated to version 0.1.12
This commit is contained in:
parent
9d1975e24e
commit
99e91c3679
@ -6,7 +6,7 @@
|
||||
"authors": [
|
||||
{ "name": "Robin Riis" }
|
||||
],
|
||||
"version": "0.1.11",
|
||||
"version": "0.1.12",
|
||||
"socket": true,
|
||||
"minimumCoreVersion": 10,
|
||||
"compatibility": {
|
||||
|
||||
@ -12,6 +12,7 @@ Hooks.on("init", async function() {
|
||||
|
||||
Hooks.on("ready", async function() {
|
||||
console.log("[puckoprutt] Hello Ready");
|
||||
ui.notifications.notify("Puckoprutt greets you to the world of: " + game.world.title)
|
||||
});
|
||||
|
||||
Hooks.on("chatMessage", (log, message, data) => {
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
export class PuckoPruttApi {
|
||||
class PuckoPruttApi {
|
||||
constructor() {
|
||||
this.apiUrl = "api.puckoprutt.tech"
|
||||
this.schema = this.apiUrl + "/schema"
|
||||
this.apiUrl = "https://api.puckoprutt.tech"
|
||||
this.schema = this.apiUrl + "/schema/"
|
||||
}
|
||||
|
||||
dagens_lunch(spider) {
|
||||
return fetch(this.apiUrl + "/dagens_lunch/" + spider, {method: "GET"});
|
||||
return fetch(this.apiUrl + "/dagens_lunch/" + spider + "/", {method: "GET"});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default PuckoPruttApi;
|
||||
Loading…
x
Reference in New Issue
Block a user