8000 GitHub - Michael-Nunley/Steam-Games-in-Common: Take either steamIds or discord user ids and get an ordered list of strings of steam games in common
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Michael-Nunley/Steam-Games-in-Common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steam-Games-in-Common

This can be used to get steam games that are shared between any number of steam accounts.

NOTE:

In order to use either method, you must edit  the file SteamWebAPI and enter your steam webapi key.
If you do not already have one, you get receive an api key from https://steamcommunity.com/dev/apikey .

Use Method #1: Steam ID

steamidlist = ['STEAMIDXXXXXXXXXX','STEAMIDXXXXXXXXXX','STEAMIDXXXXXXXXXX']      
percentCutoff = 100      
gamelist = findGamesInCommon(percentCutoff, steamidlist)  

Alternatively,

gamelist = findGamesInCommon(65, 'STEAMIDXXXXXXXXXX','STEAMIDXXXXXXXXXX','STEAMIDXXXXXXXXXX')  

Use Method #2: Discord ID

Copy the discord ID's of the users you want,
Enable Developer mode, Right-click a discord user and click copy id to copy their discord id to your clipboard. and in discordSteamIDlink.json put in their discord id linked to thier steam id in this format:

{      
  "userIDs":      
  {      
    "DISCORDXXXXXXXXXXX":"STEAMIDXXXXXXXXXX",      
    "227581562345095000":"76561198022367000"      
  }      
}  

Finally, you can call pullGamesInCommonFromDiscordIDs with a number from 0-100 and either a list of the ids (see the file for this example) or with arguments of the discord ids as strings.

mentionedIDList = ['DISCORDXXXXXXXXXXX','DISCORDXXXXXXXXXXX','DISCORDXXXXXXXXXXX']    
percentCutoff = 75    
gamelist = pullGamesInCommonFromDiscordIDs(percentCutoff,mentionedIDList)  

Alternatively:

gamelist = pullGamesInCommonFromDiscordIDs(100,['DISCORDXXXXXXXXXXX','DISCORDXXXXXXXXXXX','DISCORDXXXXXXXXXXX'])  

Discord-py example:

    @commands.command(pass_context=True, no_pm=True)  
    async def game(self, ctx):  
        """Lists games in common"""  
  
        mentionedUsersSteamIDs = []  
        mentionIDList = []  
  
        mentionList = ctx.message.mentions  
        for member in mentionList:  
            mentionIDList.append(str(member.id))  
  
        from steamgamesv2 import pullGamesInCommonFromDiscordIDs
        game = pullGamesInCommonFromDiscordIDs(100,mentionIDList)  
        games = str(game).replace('\'', '').strip('[').strip(']')  
        for x in range(0,int(len(games)/1998)+1):  
            #print(str(games)[x*2000:(x+1)*2000])  
            await self.bot.say('`' + games[x*1998:(x+1)*1998] + '`')  

About

Take either steamIds or discord user ids and get an ordered list of strings of steam games in common

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0