Skip to content

Commit 2e25e7d

Browse files
committed
update: Updated set up env file script to include new clash royale api key entry
1 parent d08a096 commit 2e25e7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/scripts/setupEnvFile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async function setupEnvironment() {
4444
const spotifyClientId = await askQuestion(`${color.yellow}[${getTimestamp()}]${color.reset} [SETUP_ENV] Please enter your Spotify Client ID: `);
4545
const spotifyClientSecret = await askQuestion(`${color.yellow}[${getTimestamp()}]${color.reset} [SETUP_ENV] Please enter your Spotify Client Secret: `);
4646
const ngrokAuthToken = await askQuestion(`${color.yellow}[${getTimestamp()}]${color.reset} [SETUP_ENV] Please enter your ngrok auth token: `);
47+
const clashRoyaleApiKey = await askQuestion(`${color.yellow}[${getTimestamp()}]${color.reset} [SETUP_ENV] Please enter your Clash Royale SuperCell developer API key: `);
4748

4849
const envContent = `
4950
token=${botToken}
@@ -68,6 +69,8 @@ SPOTIFY_REDIRECT_URI=http://localhost:3000/callback
6869
PORT=3000
6970
7071
NGROK_AUTH_TOKEN=${ngrokAuthToken}
72+
73+
CLASH_ROYAL_API_KEY=${clashRoyaleApiKey}
7174
`;
7275

7376
fs.writeFileSync(envPath, envContent.trim() + '\n');

0 commit comments

Comments
 (0)