3 Commits
2.1.1 ... main

Author SHA1 Message Date
dd0d13d8f8 update bun version 2025-10-09 23:49:22 +02:00
Fran Jurmanović
eea3f11f74 version increase 2025-08-13 19:58:47 +02:00
Fran Jurmanović
ab17126b76 try..catch the channels 2025-08-13 19:48:49 +02:00
3 changed files with 34 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
# Use oven/bun as parent image # Use oven/bun as parent image
FROM oven/bun:1.0.27 FROM oven/bun:1.2.23
# Change the working directory on the Docker image to /app # Change the working directory on the Docker image to /app
WORKDIR /app WORKDIR /app

View File

@@ -1,6 +1,6 @@
{ {
"name": "legica-dana", "name": "legica-dana",
"version": "2.1.1", "version": "2.1.3",
"main": "src/app.ts", "main": "src/app.ts",
"scripts": { "scripts": {
"start": "bun run src/app.ts", "start": "bun run src/app.ts",

View File

@@ -41,7 +41,7 @@ export async function sendDiscordMessage(
)}` )}`
); );
} }
try {
const promises = client.channels.cache.map(async (channel) => { const promises = client.channels.cache.map(async (channel) => {
try { try {
if (channel.type !== "text") return null; if (channel.type !== "text") return null;
@@ -71,6 +71,9 @@ export async function sendDiscordMessage(
} }
}); });
await Promise.all(promises); await Promise.all(promises);
} catch (err) {
console.error(err);
}
} }
/** /**