updated to version 0.1.25
This commit is contained in:
parent
4d45cc0e81
commit
5d583ed6d8
@ -6,7 +6,7 @@
|
||||
"authors": [
|
||||
{ "name": "Robin Riis" }
|
||||
],
|
||||
"version": "0.1.24",
|
||||
"version": "0.1.25",
|
||||
"socket": true,
|
||||
"minimumCoreVersion": 10,
|
||||
"compatibility": {
|
||||
|
||||
@ -7,7 +7,7 @@ export class PuckoPruttApi {
|
||||
}
|
||||
|
||||
async _fetch_json(url) {
|
||||
const response = await fetch(url);
|
||||
const response = await fetch(this.apiUrl + url);
|
||||
if (!response.ok) {
|
||||
return -1;
|
||||
}
|
||||
@ -16,6 +16,6 @@ export class PuckoPruttApi {
|
||||
}
|
||||
|
||||
async dagens_lunch(spider) {
|
||||
return await this._fetch_json(this.apiUrl + "/spiders/dagens_lunch/" + spider + "/?format=json");
|
||||
return await this._fetch_json("/spiders/dagens_lunch/" + spider + "/?format=json");
|
||||
}
|
||||
}
|
||||
@ -9,6 +9,7 @@ async function dagens(user, message) {
|
||||
}
|
||||
let today = new Date().getDay();
|
||||
let ret = "";
|
||||
console.log(week);
|
||||
switch(today) {
|
||||
case 1:
|
||||
ret = week["monday"];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user