updated to version 0.1.14
This commit is contained in:
parent
533b925bd7
commit
9bcde89c31
@ -6,7 +6,7 @@
|
||||
"authors": [
|
||||
{ "name": "Robin Riis" }
|
||||
],
|
||||
"version": "0.1.13",
|
||||
"version": "0.1.14",
|
||||
"socket": true,
|
||||
"minimumCoreVersion": 10,
|
||||
"compatibility": {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { puckoprutt } from "./puckoapi/puckoapi.js";
|
||||
import { puckocommand } from "./puckochat/commands.js";
|
||||
import PuckoPruttApi from "./puckoapi/puckoapi.js";
|
||||
import puckocommand from "./puckochat/commands.js";
|
||||
|
||||
let pp = null;
|
||||
let puckoprutt = null;
|
||||
Hooks.once("setup", async function() {
|
||||
pp = puckoprutt;
|
||||
puckoprutt = new PuckoPruttApi();
|
||||
});
|
||||
|
||||
Hooks.on("init", async function() {
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
class PuckoPruttApi {
|
||||
|
||||
|
||||
export default class PuckoPruttApi {
|
||||
constructor() {
|
||||
this.apiUrl = "https://api.puckoprutt.tech"
|
||||
this.schema = this.apiUrl + "/schema/"
|
||||
@ -8,7 +10,3 @@ class PuckoPruttApi {
|
||||
return fetch(this.apiUrl + "/dagens_lunch/" + spider + "/", {method: "GET"});
|
||||
}
|
||||
}
|
||||
|
||||
const puckoprutt = new PuckoPruttApi();
|
||||
|
||||
export default puckoprutt;
|
||||
Loading…
x
Reference in New Issue
Block a user