mirror of
https://github.com/watn3y/steamsalty.git
synced 2025-10-28 09:30:52 +01:00
refactor!: change config structure to be more readable
This commit is contained in:
parent
f17601c470
commit
038d375ae7
7 changed files with 31 additions and 22 deletions
|
|
@ -69,9 +69,9 @@ func watcher(bot *tgbotapi.BotAPI, steamID uint64, sleeptime time.Duration) {
|
|||
"<blockquote>" + comment.Text + "</blockquote>",
|
||||
}
|
||||
|
||||
if config.BotConfig.TranslateEnabled {
|
||||
if config.BotConfig.Translate.Enabled {
|
||||
translatedText, translatedTextLanguage, err := deepl.Translate(comment.Text)
|
||||
if translatedTextLanguage == config.BotConfig.TranslateLanguage {
|
||||
if translatedTextLanguage == config.BotConfig.Translate.Language {
|
||||
continue
|
||||
}
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue