Skip to content

Commit c2c4b37

Browse files
MarcMogdanzandrewda
authored andcommitted
Fix outdated usage of EPersonaState from steam-user (#99)
Closes #94
1 parent d39ebe5 commit c2c4b37

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

Chapter 1 - Basics/Chapter 1.3 - Starting to Code/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ its status to online and start playing some good ol' Team Fortress 2.
108108
client.on('loggedOn', () => {
109109
console.log('Logged into Steam');
110110

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

126126
```js
127-
client.setPersona(SteamUser.Steam.EPersonaState.Online, 'andrewda');
127+
client.setPersona(SteamUser.EPersonaState.Online, 'andrewda');
128128
```
129129

130130
to change our Steam name to "andrewda". The `gamesPlayed` method takes one

Chapter 1 - Basics/Chapter 1.3 - Starting to Code/project1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ client.logOn(logOnOptions);
1212
client.on('loggedOn', () => {
1313
console.log('Logged into Steam!');
1414

15-
client.setPersona(SteamUser.Steam.EPersonaState.Online);
15+
client.setPersona(SteamUser.EPersonaState.Online);
1616
client.gamesPlayed(440);
1717
});

Chapter 1 - Basics/Chapter 1.4 - TOTP/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ client.logOn(logOnOptions);
2424
client.on('loggedOn', () => {
2525
console.log('Logged into Steam');
2626

27-
client.setPersona(SteamUser.Steam.EPersonaState.Online);
27+
client.setPersona(SteamUser.EPersonaState.Online);
2828
client.gamesPlayed(440);
2929
});
3030
```

Chapter 1 - Basics/Chapter 1.4 - TOTP/project1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ client.logOn(logOnOptions);
1515
client.on('loggedOn', () => {
1616
console.log('Logged into Steam');
1717

18-
client.setPersona(SteamUser.Steam.EPersonaState.Online);
18+
client.setPersona(SteamUser.EPersonaState.Online);
1919
client.gamesPlayed(440);
2020
});

Chapter 2 - Trading/Chapter 2.2 - Handling Trade Offers/project2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ client.logOn(logOnOptions);
2323
client.on('loggedOn', () => {
2424
console.log('Logged into Steam');
2525

26-
client.setPersona(SteamUser.Steam.EPersonaState.Online);
26+
client.setPersona(SteamUser.EPersonaState.Online);
2727
client.gamesPlayed(440);
2828
});
2929

Chapter 2 - Trading/Chapter 2.3 - Sending Trade Offers/project2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ client.logOn(logOnOptions);
2323
client.on('loggedOn', () => {
2424
console.log('Logged into Steam');
2525

26-
client.setPersona(SteamUser.Steam.EPersonaState.Online);
26+
client.setPersona(SteamUser.EPersonaState.Online);
2727
client.gamesPlayed(440);
2828
});
2929

Chapter 2 - Trading/Chapter 2.4 - Accepting Donations/project3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ client.logOn(logOnOptions);
2323
client.on('loggedOn', () => {
2424
console.log('Logged into Steam');
2525

26-
client.setPersona(SteamUser.Steam.EPersonaState.Online);
26+
client.setPersona(SteamUser.EPersonaState.Online);
2727
client.gamesPlayed(440);
2828
});
2929

Chapter 3 - User Interaction/Chapter 3.1 - Friend Requests/project4.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ client.logOn(logOnOptions);
1515
client.on('loggedOn', () => {
1616
console.log('Logged into Steam');
1717

18-
client.setPersona(SteamUser.Steam.EPersonaState.Online);
18+
client.setPersona(SteamUser.EPersonaState.Online);
1919
client.gamesPlayed(440);
2020
});
2121

Chapter 6 - Connecting Sites and Bots/Chapter 6.3 - Beginning the Connection/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class SteamBot {
7474
this.client.on('loggedOn', () => {
7575
console.log('Logged into Steam');
7676

77-
this.client.setPersona(SteamUser.Steam.EPersonaState.Online);
77+
this.client.setPersona(SteamUser.EPersonaState.Online);
7878
this.client.gamesPlayed(730);
7979
});
8080

Chapter 6 - Connecting Sites and Bots/Chapter 6.3 - Beginning the Connection/project10/bots/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SteamBot {
2222
this.client.on('loggedOn', () => {
2323
console.log('Logged into Steam');
2424

25-
this.client.setPersona(SteamUser.Steam.EPersonaState.Online);
25+
this.client.setPersona(SteamUser.EPersonaState.Online);
2626
this.client.gamesPlayed(730);
2727
});
2828

0 commit comments

Comments
 (0)