diff --git a/package-lock.json b/package-lock.json index 696b81a..bdd58b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "denim_3001", - "version": "3001.41.0", + "version": "3001.41.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "denim_3001", - "version": "3001.41.0", + "version": "3001.41.1", "license": "ISC", "dependencies": { "@discordjs/voice": "^0.11.0", diff --git a/package.json b/package.json index 3bceb5e..5d7e19c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "denim_3001", - "version": "3001.41.0", + "version": "3001.41.1", "description": "Toto je velmi kvalitní bot.", "repository": { "url": "https://github.com/Histmy/Denim-Bot/" diff --git a/src/modules/novaOrdinacka.ts b/src/modules/novaOrdinacka.ts index f8361c9..0bb44c6 100644 --- a/src/modules/novaOrdinacka.ts +++ b/src/modules/novaOrdinacka.ts @@ -23,13 +23,14 @@ function naplanovat(jesteNeska?: true) { const padNula = (n: number) => n > 9 ? n : `0${n}`; function hendelieren() { - fetch("https://sktorrent.eu/torrent/torrents_v2.php?search=ordinace") + const base = "https://sktorrent.eu/torrent/"; + fetch(`${base}torrents_v2.php?search=ordinace`) .then(r => r.text()) .then(txt => { const tabule = txt.match(/(?.+)<\/table>/is); if (!tabule) return console.log("nenašel jsem tabuleho"); - const detaily = tabule.groups!.kontent.match(/\d\d\/\d\d\/\d{4})/is); + const detaily = tabule.groups!.kontent.match(/\d\d\/\d\d\/\d{4})/is); const datum = detaily!.groups!.datum; if (posledniDatum == "") { @@ -44,7 +45,7 @@ function hendelieren() { if (posledniDatum == datum) return setTimeout(hendelieren, 18e4); - (client.channels.cache.get("555779161067749448") as TextChannel).send(`<@&591306633196339261> vyšla nová vordinačka ${emouty.lajk}\nhttps://sktorrent.eu/${detaily?.groups?.odkaz}`); + (client.channels.cache.get("555779161067749448") as TextChannel).send(`<@&591306633196339261> vyšla nová vordinačka ${emouty.lajk}\n${base}download.php?${detaily?.groups?.odkaz}`); naplanovat(); return; });