#!/usr/bin/env node /** * Get Discord User Token Helper * * This script helps extract the Discord user token from: * 1. Browser local storage (via browser automation if available) * 2. Or provides instructions for manual extraction */ console.log(` === Discord User Token Extraction === To create bots programmatically, we need your Discord USER token (not a bot token). Option 1: Manual Extraction --------------------------- 1. Go to https://discord.com in a browser 2. Log into your Discord account 3. Open Developer Tools (F12 or Cmd+Opt+I) 4. Go to Application (Chrome) or Storage (Firefox) tab 5. Expand "Local Storage" → https://discord.com 6. Find the "token" key 7. Copy its value (it's a long string starting with letters like "Mf..." or "od...") Option 2: Extract with Browser Automation ------------------------------------------ If the browser tool is working, we can automate this extraction. The token format looks like: - Base64 encoded string - Usually starts with: Mf..., od..., or similar - Length: ~60-70 characters IMPORTANT: - This is YOUR user token, not a bot token - Keep it secret! - You'll need 2FA enabled on your Discord account - Discard after use if possible Once you have the token, run: DISCORD_USER_TOKEN="your_token_here" node create-discord-bot.js "BotName" `);