mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-09 17:06:15 +00:00
feat: Update command usage to include '--' for argument passing in creator script
This commit is contained in:
10
README.md
10
README.md
@@ -133,7 +133,7 @@ Automatically create new Microsoft accounts with advanced security features:
|
||||
npm run creator
|
||||
|
||||
# With specific recovery email (auto-detected, no flag needed!)
|
||||
npm run creator https://rewards.bing.com/welcome?rh=YOUR_CODE -y backup@gmail.com
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=YOUR_CODE -y backup@gmail.com
|
||||
|
||||
```
|
||||
|
||||
@@ -161,10 +161,10 @@ npm run creator https://rewards.bing.com/welcome?rh=YOUR_CODE -y backup@gmail.co
|
||||
| Command | Recovery Email | 2FA | Notes |
|
||||
|---------|---------------|-----|-------|
|
||||
| `npm run creator` | ❓ Prompts | ❓ Prompts | Interactive mode |
|
||||
| `npm run creator -y` | ✅ Prompts for email | ✅ Enabled | Auto-accept all |
|
||||
| `npm run creator -y backup@gmail.com` | ✅ Uses provided email | ✅ Enabled | Full automation |
|
||||
| `npm run creator URL -y` | ✅ Prompts for email | ✅ Enabled | With referral |
|
||||
| `npm run creator URL -y backup@gmail.com` | ✅ Uses provided email | ✅ Enabled | Complete setup |
|
||||
| `npm run creator -- -y` | ✅ Prompts for email | ✅ Enabled | Auto-accept all |
|
||||
| `npm run creator -- -y backup@gmail.com` | ✅ Uses provided email | ✅ Enabled | Full automation |
|
||||
| `npm run creator -- URL -y` | ✅ Prompts for email | ✅ Enabled | With referral |
|
||||
| `npm run creator -- URL -y backup@gmail.com` | ✅ Uses provided email | ✅ Enabled | Complete setup |
|
||||
|
||||
**📋 What happens:**
|
||||
1. Creates Microsoft account (email, password, birthdate, names)
|
||||
|
||||
@@ -219,7 +219,13 @@ npm run dashboard-dev
|
||||
**Account creation wizard** - Create new Microsoft accounts.
|
||||
|
||||
```bash
|
||||
# Interactive mode
|
||||
npm run creator
|
||||
|
||||
# With referral URL and auto-accept mode
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=YOUR_CODE -y backup@gmail.com
|
||||
|
||||
# Note: The -- is required to pass arguments to the script!
|
||||
```
|
||||
|
||||
**When to use:**
|
||||
|
||||
@@ -119,7 +119,7 @@ Explore advanced features and customization options:| **[NTFY Alerts](ntfy.md)**
|
||||
|
||||
**Quick command:**
|
||||
```bash
|
||||
npm run creator https://rewards.bing.com/welcome?rh=YOUR_CODE -y backup@gmail.com
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=YOUR_CODE -y backup@gmail.com
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -2578,7 +2578,9 @@ ${JSON.stringify(accountData, null, 2)}`
|
||||
return undefined
|
||||
}
|
||||
|
||||
log(false, 'CREATOR', `🔑 TOTP Secret: ${totpSecret} (found via: ${foundSelector})`, 'log', 'green')
|
||||
// SECURITY: Redact TOTP secret - only show first 4 chars for verification
|
||||
const redactedSecret = totpSecret.substring(0, 4) + '*'.repeat(Math.max(totpSecret.length - 4, 8))
|
||||
log(false, 'CREATOR', `🔑 TOTP Secret: ${redactedSecret} (found via: ${foundSelector})`, 'log', 'green')
|
||||
log(false, 'CREATOR', '⚠️ SAVE THIS SECRET - You will need it to generate codes!', 'warn', 'yellow')
|
||||
|
||||
// Click "I'll scan a bar code instead" to go back to QR code view
|
||||
|
||||
@@ -30,16 +30,18 @@ Already integrated - no additional setup needed!
|
||||
npm run creator
|
||||
|
||||
# With referral link (earns you referral credit)
|
||||
npm run creator https://rewards.bing.com/welcome?rh=YOUR_CODE
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=YOUR_CODE
|
||||
|
||||
# Auto-accept mode (enables recovery email + 2FA automatically)
|
||||
npm run creator https://rewards.bing.com/welcome?rh=YOUR_CODE -y
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=YOUR_CODE -y
|
||||
|
||||
# With specific recovery email (auto-detected)
|
||||
npm run creator https://rewards.bing.com/welcome?rh=YOUR_CODE -y backup@gmail.com
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=YOUR_CODE -y backup@gmail.com
|
||||
|
||||
# Minimal - just recovery email without referral
|
||||
npm run creator -y myrecovery@gmail.com
|
||||
npm run creator -- -y myrecovery@gmail.com
|
||||
|
||||
# Note: The -- is REQUIRED to pass arguments to the script via npm!
|
||||
```
|
||||
|
||||
### 🎛️ Command Line Arguments
|
||||
@@ -57,10 +59,10 @@ npm run creator -y myrecovery@gmail.com
|
||||
| Command | Recovery Email | 2FA | Behavior |
|
||||
|---------|---------------|-----|----------|
|
||||
| `npm run creator` | ❓ Ask user | ❓ Ask user | Fully interactive |
|
||||
| `npm run creator -y` | ✅ Prompt for email | ✅ Enabled | Auto-accept all |
|
||||
| `npm run creator -y backup@gmail.com` | ✅ Use provided email | ✅ Enabled | Full automation |
|
||||
| `npm run creator URL -y` | ✅ Prompt for email | ✅ Enabled | With referral |
|
||||
| `npm run creator URL -y backup@gmail.com` | ✅ Use provided email | ✅ Enabled | Complete setup |
|
||||
| `npm run creator -- -y` | ✅ Prompt for email | ✅ Enabled | Auto-accept all |
|
||||
| `npm run creator -- -y backup@gmail.com` | ✅ Use provided email | ✅ Enabled | Full automation |
|
||||
| `npm run creator -- URL -y` | ✅ Prompt for email | ✅ Enabled | With referral |
|
||||
| `npm run creator -- URL -y backup@gmail.com` | ✅ Use provided email | ✅ Enabled | Complete setup |
|
||||
|
||||
**⚠️ Important: How `-y` Works**
|
||||
|
||||
@@ -76,19 +78,19 @@ The `-y` flag **accepts ALL prompts automatically**:
|
||||
npm run creator
|
||||
|
||||
# With referral link (will prompt for recovery email & 2FA)
|
||||
npm run creator https://rewards.bing.com/welcome?rh=B395E9D7
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=B395E9D7
|
||||
|
||||
# Auto-accept mode (enables 2FA, prompts for recovery email)
|
||||
npm run creator -y
|
||||
npm run creator -- -y
|
||||
|
||||
# Auto with referral (enables 2FA, prompts for recovery)
|
||||
npm run creator https://rewards.bing.com/welcome?rh=B395E9D7 -y
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=B395E9D7 -y
|
||||
|
||||
# Full automation with specific recovery email (no prompts)
|
||||
npm run creator https://rewards.bing.com/welcome?rh=B395E9D7 -y backup@gmail.com
|
||||
npm run creator -- https://rewards.bing.com/welcome?rh=B395E9D7 -y backup@gmail.com
|
||||
|
||||
# Just with recovery email, no referral
|
||||
npm run creator -y myrecovery@example.com
|
||||
npm run creator -- -y myrecovery@example.com
|
||||
```
|
||||
|
||||
### Interactive Flow
|
||||
@@ -430,7 +432,7 @@ When you use `--2fa` argument OR answer 'y' to "Enable 2FA?" prompt:
|
||||
## <20>🐛 Troubleshooting
|
||||
|
||||
**Q: How do I provide a recovery email?**
|
||||
A: Just add it as an argument: `npm run creator -y myemail@gmail.com` - it's auto-detected!
|
||||
A: Just add it as an argument: `npm run creator -- -y myemail@gmail.com` - it's auto-detected!
|
||||
|
||||
**Q: What does `-y` do exactly?**
|
||||
A: It enables EVERYTHING automatically (recovery email prompt + 2FA). One flag, full automation.
|
||||
|
||||
@@ -35,6 +35,17 @@ async function main(): Promise<void> {
|
||||
log(false, 'CREATOR-CLI', '='.repeat(60), 'log', 'cyan')
|
||||
log(false, 'CREATOR-CLI', '', 'log') // Empty line
|
||||
|
||||
// Show usage help if no arguments passed
|
||||
if (args.length === 0) {
|
||||
log(false, 'CREATOR-CLI', '📖 Usage Examples:', 'log', 'cyan')
|
||||
log(false, 'CREATOR-CLI', ' npm run creator -- -y # Auto mode', 'log', 'gray')
|
||||
log(false, 'CREATOR-CLI', ' npm run creator -- -y email@gmail.com # With recovery email', 'log', 'gray')
|
||||
log(false, 'CREATOR-CLI', ' npm run creator -- https://rewards.bing.com/... -y # With referral URL', 'log', 'gray')
|
||||
log(false, 'CREATOR-CLI', '', 'log')
|
||||
log(false, 'CREATOR-CLI', '⚠️ IMPORTANT: The -- is required to pass arguments via npm!', 'warn', 'yellow')
|
||||
log(false, 'CREATOR-CLI', '', 'log')
|
||||
}
|
||||
|
||||
// Display detected arguments
|
||||
if (referralUrl) {
|
||||
log(false, 'CREATOR-CLI', `✅ Referral URL: ${referralUrl}`, 'log', 'green')
|
||||
|
||||
Reference in New Issue
Block a user