refactor!: change config structure to be more readable

This commit is contained in:
Noah 2025-10-13 17:02:20 +02:00
parent f17601c470
commit 038d375ae7
No known key found for this signature in database
GPG key ID: D2A7E2C8F77E0430
7 changed files with 31 additions and 22 deletions

View file

@ -9,7 +9,7 @@ import (
func GetPlayerDetails(steamID uint64) (summary steamapi.PlayerSummary) {
response, err := steamapi.GetPlayerSummaries([]uint64{steamID}, config.BotConfig.SteamAPIKey)
response, err := steamapi.GetPlayerSummaries([]uint64{steamID}, config.BotConfig.Steam.APIKey)
if err != nil {
log.Error().Err(err).Msg("Failed to retrive player summary")
}