Jump to content
McKay Development

Mrdbuffalo

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Mrdbuffalo

  1. So I am using steam-user to get a list of gameservers. My code worked for a while but when I tried to do it again on another script it just returns "null". I have tried everything I can think of and I am out of ideas. Anything to point me in the right direction would be greatly appreciated.

    const SteamUser = require('steam-user');
    const client = new SteamUser();
    
    
    client.logOn();
    
    client.on('loggedOn', () => {
      console.log('Logged into Steam');
      client.getServerList(null, 100, (servers) => {
        console.log(servers);
      })
    });
    
     
×
×
  • Create New...