Skip to content

Commit 0d74053

Browse files
committed
chore: more logging
1 parent 5151c90 commit 0d74053

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/webfisher.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ block webfisher:
4747
info(fmt"AutoShop enabled, using bait {globalConfig.bait}.")
4848

4949
# Add some wait time so the user can get situated
50+
debug("Waiting for 5 seconds...")
5051
sleep(5000)
5152

5253
if globalConfig.castOnStart == true:

src/webfisher/linux/screen.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ proc getPixelColor(screenshot: PXImage; x: int; y: int): Pixel =
5959
pixel.r = ((color shr 16) and 0xFF).int
6060
pixel.g = ((color shr 8) and 0xFF).int
6161
pixel.b = (color and 0xFF).int
62-
debug(fmt"Pixel r {pixel.r} g {pixel.g} b {pixel.b}")
6362
return pixel
6463

6564
proc checkPixels(screenshot: PXImage, pixelList: PixelList, count: int): bool =
6665
var valid = 0
6766
for checkPixel in pixelList:
6867
let pixel = getPixelColor(screenshot, checkPixel.x, checkPixel.y)
69-
debug(fmt"checkPixel r {checkPixel.r} g {checkPixel.g} b {checkPixel.b}")
68+
debug(fmt"Pixel check real:ideal | r {pixel.r}:{checkPixel.r} | g {pixel.g}:{checkPixel.g} | b {pixel.b}:{checkPixel.b}")
7069
if pixel.r == checkPixel.r and
7170
pixel.g == checkPixel.g and
7271
pixel.b == checkPixel.b:

0 commit comments

Comments
 (0)