This project fetches and displays game statistics for a specified Steam user using the MySquadStats and Steam APIs. The stats include the playtime of a Squad and are displayed in a tabular format in the console.
- .NET SDK
- An environment variable
SQUADDY_STEAM_API_KEY
set with your Steam API key.
- Clone the repository:
git clone <repository-url>
cd <repository-directory>
- Set the Steam API Key:
Make sure to set theSQUADDY_STEAM_API_KEY
environment variable with your Steam API key:
export SQUADDY_STEAM_API_KEY=your_steam_api_key
- Run the script:
Execute the script with the required arguments:
dotnet fsi script.fsx <username> <caseComparison> <matchType>
<username>
: The username to search for.<caseComparison>
: The case comparison type. Options are:ignorecase
orfollowcase
.
<matchType>
: The match type. Options are:contains
orexactly
.
To run the script for a user with username "exampleUser", case-insensitive comparison, and exact match:
dotnet fsi squaddy.fsx "exampleUser" ignorecase exactly