Steam.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:Sparcli 作者: 4Kaylum 项目源码 文件源码
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())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号