Browser automation tool for testing Virtual Fisher's macro detection.
Automates the Virtual Fisher Discord bot using a state machine:
- Sends
/fishcommand and waits for response - Detects "out of bait" → automatically sells inventory and buys more bait
- Detects text captchas → automatically solves them using the code from the message
- Respects cooldowns → waits for the configured cooldown after each fish response
/fish → Response → Parse:
- Normal catch → /fish (after cooldown)
- "You ran out of" → /sell → /buy → /fish
- Captcha (text) → /verify <code> → continue
- Captcha (image) → TERMINATE (not supported)
- Image captchas are not supported - The program will terminate if an image captcha is detected. When any captcha is detected, full details (message content and attachments) are logged to the console. Text captchas (with "Code: XYZ") are solved automatically.
-
Install dependencies:
npm install npx playwright install chromium
-
Copy
.env.exampleto.envand fill in your values:cp .env.example .env
-
Get your Discord token (instructions)
-
Get your server and channel IDs from the Discord URL:
https://discord.com/channels/SERVER_ID/CHANNEL_ID
| Variable | Description | Example |
|---|---|---|
DISCORD_TOKEN |
Your Discord account token | |
SERVER_ID |
Discord server ID | 1234567890 |
CHANNEL_ID |
Discord channel ID | 1234567890 |
FISH_COOLDOWN |
Seconds between fish commands (from response time) | 2.7 |
BAIT_TYPE |
Bait to auto-purchase | worms |
npm startOpens a browser, authenticates via token, navigates to the channel, and starts the fishing loop.
Press Ctrl+C to stop.