DeltaNeverUsed / reddit-place-script-2022-Delta-s-Edition

Script to an image onto r/place (https://www.reddit.com/r/place/)
8 stars 3 forks source link

typeerror from clamp #12

Closed ghost closed 2 years ago

ghost commented 2 years ago
Traceback (most recent call last):
  File "D:\David\Documents\RPlace\reddit-place-script-2022-Delta-s-Edition-main\main.py", line 505, in <module>
    time.sleep(clamp(pixel_place_frequency/len(accounts))+1-time_taken, 1, 99999999)
TypeError: clamp() missing 2 required positional arguments: 'a' and 'b'
ghost commented 2 years ago

oh also

{"errors":[{"message":"'Y' has to be within 0-999 range","path":["act"]}],"data":null}
that's probably not good 1 error(s)
DeltaNeverUsed commented 2 years ago

should work now.

DeltaNeverUsed commented 2 years ago
Traceback (most recent call last):
  File "D:\David\Documents\RPlace\reddit-place-script-2022-Delta-s-Edition-main\main.py", line 505, in <module>
    time.sleep(clamp(pixel_place_frequency/len(accounts))+1-time_taken, 1, 99999999)
TypeError: clamp() missing 2 required positional arguments: 'a' and 'b'

forgot to fix this. is now also fixed

ghost commented 2 years ago
placing pixel
Sending: POST https://gql-realtime-2.reddit.com/query
{"errors":[{"message":"Ratelimited","path":["act"],"extensions":{"nextAvailablePixelTs":1649015989000}},{"message":"ratelimit hit, next available: 1649015989000","path":["act"]}],"data":null}
that's probably not good 1 error(s)
next pixel in -200.0 seconds
Response status: 200
Traceback (most recent call last):
  File "D:\David\Documents\RPlace\reddit-place-script-2022-Delta-s-Edition-main\main.py", line 508, in <module>
    time.sleep(clamp(pixel_place_frequency/len(accounts))+1-time_taken, 1, 99999999)
TypeError: clamp() missing 2 required positional arguments: 'a' and 'b'
Image Progress: |████████████████----------------------------------| 32.9% Complete

Account Progress: |██------------------------------------------------| 5.0% End

Process finished with exit code 1
ghost commented 2 years ago

idk if that helps

DeltaNeverUsed commented 2 years ago

works on my end, are you sure you have the newest version?