Jump to content


Photo

client.gamesplayed

node.js node-steam-user

  • Please log in to reply
1 reply to this topic

#1 hexo

hexo

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 17 April 2019 - 08:30 AM

Hi, how do I set that I'm playing a custom game in my profile. I tried placing the string first but still goes online and shows as playing a game with the first integer in my array

 

client.gamesPlayed(["some string here", 730, 440, ..., ....]);

 

edit: I made it work by via this:

 

let x = "some string here";

let y = x.toString();

client.gamesPlayed([y, 730, 440, ..., ....]);


Edited by hexo, 17 April 2019 - 09:11 AM.


#2 SnaBe

SnaBe

    Member

  • Member
  • PipPip
  • 29 posts
  • LocationDenmark

Posted 21 April 2019 - 11:51 AM

If you want a custom game, make a string as the first entry in your games array that you pass to gamesPlayed.

 

Examples:

client.gamesPlayed('My Custom Game', 440 ,730);

or

var games = ['My Custom Game', 440 ,730];

client.gamesPlayed(games);

It looks cleaner in my opinion.







Also tagged with one or more of these keywords: node.js, node-steam-user

4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users