pnpm i- terminal 1
pnpm run server - terminal 2
pnpm run demo
This system consists of two types of clients:
- Purpose: Stores and manages large amounts of gold
- Behavior: Requests gold dumps from farmers when the mule has over 100M gold
- Features:
- Automatically sends dump requests when gold exceeds 100M
- Listens for farmer responses
- Tracks gold received from farmers
- Simulates gold accumulation over time
-
Purpose: Farms gold and responds to mule dump requests
-
Behavior:
- β Above 100M gold: Responds "On my way!" and dumps excess gold to mule
- β Below 100M gold: Responds "Ignoring - don't have that kind of money"
-
Features:
- Automatically detects mule dump requests in chat
- Responds based on current gold amount
- Simulates farming activities and gold generation
- Dumps 80-95% of excess gold (above 100M) to mule
-
Mule Detection: When mule gold exceeds 100M, it sends a message like:
π¨ ATTENTION FARMERS: Mule requesting gold dump! I have 150,000,000 gp. Please dump your gold if you're above 100M! π° -
Farmer Response: Farmers automatically detect this message and respond based on their gold:
- Rich Farmer (>100M): "On my way to dump gold! πββοΈπ°"
- Poor Farmer (<100M): "Sorry, ignoring - I don't have that kind of money π "
-
Gold Transfer: Rich farmers simulate going to the mule and dumping their excess gold, keeping around 100M for continued farming.
[Mule] π¨ ATTENTION FARMERS: Mule requesting gold dump! I have 150,000,000 gp. Please dump your gold if you're above 100M! π°
[RichFarmer] On my way to dump gold! πββοΈπ°
[PoorFarmer] Sorry, ignoring - I don't have that kind of money π
[RichFarmer] Dumped 75,000,000 gp to mule! Keeping 105,000,000 gp for farming π°β
[Mule] Thanks RichFarmer! Received 75,000,000 gp. Mule total now: 225,000,000 gp
- Realistic Simulation: Random delays, varied responses, and realistic gold amounts
- Smart Detection: Farmers automatically detect mule requests in chat
- Threshold-Based Logic: 100M gold threshold for dump decisions
- Activity Simulation: Both clients simulate their respective activities
- Graceful Shutdown: Proper cleanup with Ctrl+C
You can customize:
- Gold thresholds (currently 100M)
- Response messages
- Activity intervals
- Gold generation amounts
- Server URL and usernames