From a96200f98131c0aebfad86d5ef9acad1cb5eb37a Mon Sep 17 00:00:00 2001 From: devlikepro Date: Thu, 16 Oct 2025 12:28:57 +0700 Subject: [PATCH] [core] Adjust message --- src/core/auth/config.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/core/auth/config.ts b/src/core/auth/config.ts index 511b4c83..a393ead5 100644 --- a/src/core/auth/config.ts +++ b/src/core/auth/config.ts @@ -136,16 +136,20 @@ export function ReportGeneratedValue() { if (values.length === 0) { return; } - console.warn('👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇'); - console.warn('====== YOUR GENERATED CREDENTIALS ======'); + console.warn(''); + console.warn('⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️'); + console.warn('Generated credentials (persist to .env or WAHA_* env vars)'); console.warn( - 'Save those variable into .env file or set environment variables to use it the next time, otherwise it is random values on each start', + 'Save these values to your environment (.env or WAHA_*) to reuse them; new keys are generated on every start otherwise.', ); console.warn(''); + console.warn("cat <<'EOF' > .env"); + console.warn(''); for (const key of values) { console.warn(`${key.param}=${key.value}`); } + console.warn('EOF'); console.warn(''); - console.warn('====== YOUR GENERATED CREDENTIALS ======'); - console.warn('☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️ '); + console.warn('Generated credentials ready to copy'); + console.warn('⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️'); }