def steamid(self, ctx, *, gameURL:str):
'''
Gets the information of a game from Steam URL
'''
await self.sparcli.send_typing(ctx.message.channel)
# Grab the game ID from the user input
regexMatches = finditer(r'\d+', gameURL)
regexList = [i for i in regexMatches]
# Parse it as a group
if len(regexList) == 0:
await self.sparcli.say('I was unable to find the ID of that game on the Steam API.')
return
else:
await self.getSteamGameInfo(regexList[0].group())
评论列表
文章目录