Skip to content

Commit

Permalink
feat: api key in env
Browse files Browse the repository at this point in the history
  • Loading branch information
Hhanuska committed May 1, 2024
1 parent d4d19a2 commit 54fe510
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/classes/Bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,10 @@ export default class Bot {
return reject(err);
}

if (process.env.STEAM_API_KEY) {
this.manager.apiKey = process.env.STEAM_API_KEY;
}

resolve();
});
});
Expand Down
5 changes: 2 additions & 3 deletions template.ecosystem.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"STEAM_PASSWORD": "",
"STEAM_SHARED_SECRET": "",
"STEAM_IDENTITY_SECRET": "",
"STEAM_API_KEY": "",

"BPTF_ACCESS_TOKEN": "",
"BPTF_API_KEY": "",
Expand All @@ -28,9 +29,7 @@
"STEAMSUPPLY_API_KEY": "",
"STEAMAPIS_API_KEY": "",

"ADMINS": [
{ "steam": "<your steamid 64>", "discord": null }
],
"ADMINS": [{ "steam": "<your steamid 64>", "discord": null }],
"KEEP": ["<steamid of person to keep in friendslist>"],
"ITEM_STATS_WHITELIST": [],
"GROUPS": ["103582791469033930"],
Expand Down
1 change: 1 addition & 0 deletions template.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ STEAM_ACCOUNT_NAME=""
STEAM_PASSWORD=""
STEAM_SHARED_SECRET=""
STEAM_IDENTITY_SECRET=""
STEAM_API_KEY=""

BPTF_ACCESS_TOKEN=""
BPTF_API_KEY=""
Expand Down

0 comments on commit 54fe510

Please sign in to comment.