DaBoyBacon / SWE_Project_S24

AI-powered game recommendations
2 stars 0 forks source link

Create Steam Name function #9

Closed alyxx2214 closed 7 months ago

alyxx2214 commented 7 months ago

Function needed that takes in a string. Compares string with SteamAPI required formatting Can throw an error, or return something/not, if input does not meet API requirements Otherwise, if string is acceptable, query the API for the information about the user's name (the input string)

Either: calls a SteamAPIFetchUserInfo() upon successful string input or returns simple true/false to the function that called this very nameChecker(), which will then either call the API, or show the user that the name is not accepted

I like the second option

alyxx2214 commented 7 months ago

All done. Merged with main, and SteamNameHandler branch probably won't be used again (Unless debugging) Test function in ~/Tests/Test_StameNameCheck/Test_StameNameCheck.py