- added start command
- added info command
This commit is contained in:
Noah 2024-12-21 08:28:28 +01:00
parent 4d83372270
commit f3459a6ce2
No known key found for this signature in database
GPG key ID: D2A7E2C8F77E0430
5 changed files with 98 additions and 7 deletions

View file

@ -1,12 +1,13 @@
package steam
import (
"watn3y/steamsalty/config"
"github.com/Philipp15b/go-steamapi"
"github.com/rs/zerolog/log"
"watn3y/steamsalty/config"
)
func getPlayerDetails(steamID uint64) (summary steamapi.PlayerSummary) {
func GetPlayerDetails(steamID uint64) (summary steamapi.PlayerSummary) {
response, err := steamapi.GetPlayerSummaries([]uint64{steamID}, config.BotConfig.SteamAPIKey)
if err != nil {