Monitors pathofexile.com/trade2 for new listings, travels to seller hideouts, buys items from public stash tabs, and stores them. Includes persistent C# OCR daemon for fast screen capture + Windows native OCR, web dashboard for managing trade links and settings, and full game automation via Win32 SendInput. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
271 B
TypeScript
8 lines
271 B
TypeScript
export function sleep(ms: number): Promise<void> {
|
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
}
|
|
|
|
export function randomDelay(minMs: number, maxMs: number): Promise<void> {
|
|
const delay = minMs + Math.random() * (maxMs - minMs);
|
|
return sleep(delay);
|
|
}
|