add retry policy

This commit is contained in:
Fran Jurmanović
2025-06-30 23:04:51 +02:00
parent def1757371
commit 01866b302e
6 changed files with 201 additions and 7 deletions

28
.env.example Normal file
View File

@@ -0,0 +1,28 @@
# Discord Bot Configuration
# -----------------------
# Required: Your Discord bot token
TOKEN=your_discord_bot_token_here
# API Configuration
# -----------------------
# Required: Password for admin API access
PASSWORD=your_secure_password_here
# Web Server Settings
# -----------------------
# Port for the API server
PORT=3000
# Scheduling
# -----------------------
# CRON schedule for when to post (default: every day at 9 AM)
CRON_LEGICA=0 9 * * *
# Timezone for the CRON job (e.g. 'Europe/Zagreb', 'America/New_York', etc.)
TIMEZONE=utc
# Content Settings
# -----------------------
# Date format used in post titles
LEGICA_DATE_FORMAT=D.M.YYYY
# Number of hourly retry attempts if date check fails
RETRY_ATTEMPTS=3