Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM denoland/deno:debian
WORKDIR /app

RUN mkdir -p /usr/share/fonts/truetype/inconsolata
COPY stuff/Inconsolata-Bold.otf /usr/share/fonts/truetype/inconsolata
COPY static/font/Inconsolata-Bold.otf /usr/share/fonts/truetype/inconsolata

RUN apt update && apt install -y file procps figlet fortune cowsay pslist inkscape imagemagick --no-install-recommends && rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 1 addition & 1 deletion src/server.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async function handleEvent(e: RequestEvent): Promise<Response | null> {
});
}

const resp = await serveDir(e.request, { fsRoot: "static", quiet: true });
const resp = await serveDir(e.request, { fsRoot: "static", quiet: true, enableCors: true });

if (![200, 301, 304].includes(resp.status)) {
if (resp.status !== 404) console.error(resp);
Expand Down
3 changes: 2 additions & 1 deletion src/tg/init.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function domeny() {

resp2 = await resp2;
const data2 = await resp2.json() as any;
if (data2.daily.temperature_2m_max[0] > 3e1) {
while (data2.daily.temperature_2m_max[0] > 3e1) {
await tgCall(
{
chat_id: MAIN_CHAT_ID,
Expand All @@ -128,6 +128,7 @@ async function domeny() {
},
"sendSticker",
);
data2.daily.temperature_2m_max[0] -= 5e0;
}
}

Expand Down
File renamed without changes.
Binary file added static/font/Inconsolata-Bold.woff2
Binary file not shown.
13 changes: 10 additions & 3 deletions static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading