Skip to content

Commit

Permalink
Fix outdated usage of EPersonaState from steam-user (#99)
Browse files Browse the repository at this point in the history
Closes #94
  • Loading branch information
MarcMogdanz authored and andrewda committed Dec 22, 2019
1 parent d39ebe5 commit c2c4b37
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Chapter 1 - Basics/Chapter 1.3 - Starting to Code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ its status to online and start playing some good ol' Team Fortress 2.
client.on('loggedOn', () => {
console.log('Logged into Steam');

client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
});
```
Expand All @@ -124,7 +124,7 @@ and the second being a persona name. The persona name is not required, but can
be set if you would like to change your Steam name. For example, we could use:

```js
client.setPersona(SteamUser.Steam.EPersonaState.Online, 'andrewda');
client.setPersona(SteamUser.EPersonaState.Online, 'andrewda');
```

to change our Steam name to "andrewda". The `gamesPlayed` method takes one
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Logged into Steam!');

client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
});
2 changes: 1 addition & 1 deletion Chapter 1 - Basics/Chapter 1.4 - TOTP/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Logged into Steam');

client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
});
```
Expand Down
2 changes: 1 addition & 1 deletion Chapter 1 - Basics/Chapter 1.4 - TOTP/project1.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Logged into Steam');

client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Logged into Steam');

client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Logged into Steam');

client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Logged into Steam');

client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Logged into Steam');

client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(440);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class SteamBot {
this.client.on('loggedOn', () => {
console.log('Logged into Steam');

this.client.setPersona(SteamUser.Steam.EPersonaState.Online);
this.client.setPersona(SteamUser.EPersonaState.Online);
this.client.gamesPlayed(730);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SteamBot {
this.client.on('loggedOn', () => {
console.log('Logged into Steam');

this.client.setPersona(SteamUser.Steam.EPersonaState.Online);
this.client.setPersona(SteamUser.EPersonaState.Online);
this.client.gamesPlayed(730);
});

Expand Down

0 comments on commit c2c4b37

Please sign in to comment.