feat: Automatic comment translation using DeepL
Some checks failed
Build and Push to Docker Hub on push to any branch / docker (push) Has been cancelled

This commit is contained in:
Noah 2025-10-13 06:08:26 +02:00
parent c6c7480493
commit 1e94b1fc1e
No known key found for this signature in database
GPG key ID: D2A7E2C8F77E0430
10 changed files with 250 additions and 20 deletions

View file

@ -1,10 +1,16 @@
package config
type config struct {
LogLevel int `env:"STEAMSALTY_LOGLEVEL, default=1"`
TelegramAPIToken string `env:"STEAMSALTY_TELEGRAMAPITOKEN, required"`
SteamAPIKey string `env:"STEAMSALTY_STEAMAPIKEY, required"`
ChatID int64 `env:"STEAMSALTY_CHATID, required"`
Watchers []uint64 `env:"STEAMSALTY_WATCHERS, required"`
SleepInterval int `env:"STEAMSALTY_SLEEPINTERVAL, default=60"`
LogLevel int `env:"STEAMSALTY_LOGLEVEL" default:"1"`
SleepInterval int `env:"STEAMSALTY_SLEEPINTERVAL" default:"60"`
ChatID int64 `env:"STEAMSALTY_CHATID" required:"true"`
Watchers []uint64 `env:"STEAMSALTY_WATCHERS" required:"true"`
TranslateEnabled bool `env:"STEAMSALTY_TRANSLATE_ENABLED" default:"false"`
TranslateLanguage string `env:"STEAMSALTY_TRANSLATE_LANGUAGE" default:"EN-US"`
TelegramAPIToken string `env:"STEAMSALTY_TELEGRAMAPITOKEN" required:"true"`
SteamAPIKey string `env:"STEAMSALTY_STEAMAPIKEY" required:"true"`
DeepLAPIKey string `env:"STEAMSALTY_DEEPLAPIKEY"`
DeepLFreeTier bool `env:"STEAMSALTY_DEEPLAPIFREETIER" default:"true"`
}