mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-10-26 02:01:03 +02:00
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
Some checks failed
Build and Push to Docker Hub on push to any branch / docker (push) Has been cancelled
This commit is contained in:
parent
c6c7480493
commit
1e94b1fc1e
10 changed files with 250 additions and 20 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue