Edouard127 / reddit-placebot-2023

A bot for r/place that doesn't use the api
MIT License
87 stars 15 forks source link

Error #33

Closed SilverKing3234 closed 1 year ago

SilverKing3234 commented 1 year ago

I get this error when i launch the program: main.readClients(0x3b9aca00?, 0xc0001aa870) C:/Users/Error/Downloads/reddit-placebot-2023-master/main.go:57 +0xe4e main.main() C:/Users/Error/Downloads/reddit-placebot-2023-master/main.go:26 +0x30e

Can you help me? idk why i get this error, ChatGPT said what i get error because some functions don't exists

Edouard127 commented 1 year ago

You didn't read the tutorial have you


    file, err := os.Open("data/users.json")
    if err != nil {
        if errors.Is(err, os.ErrNotExist) {
            os.Create("data/users.json")
            panic("Please add users to the users.json file")
        }
        panic(err)
    }
SilverKing3234 commented 1 year ago

How many users do you recommend?

Edouard127 commented 1 year ago

How many users do you recommend?

1 user for 2 pixels