Edouard127 / reddit-placebot-2023

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

cant launch with powershell #56

Closed jackoridd7 closed 1 year ago

jackoridd7 commented 1 year ago

when launching in the reddit-placebot-2023-master folder i get the error code:

./redditplacebot : The term './redditplacebot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

r4ngu commented 1 year ago

drag redditplacebot.exe (if you builded the program) to your terminal then type your coords where you want your pixel art to be at (-minX=-minY=)

jackoridd7 commented 1 year ago

i didnt build the program do i do that on windows? sorry im a total noob at this stuff lol

r4ngu commented 1 year ago

oops sorry for late response, go to "how-to-build" section in the readme, yes you can do it on windows

jackoridd7 commented 1 year ago

thankyou for the fast response ;)

jackoridd7 commented 1 year ago

do i put: go build .

into powershell?

r4ngu commented 1 year ago

yes

jackoridd7 commented 1 year ago

go : The term 'go' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

r4ngu commented 1 year ago

download go (https://go.dev/dl/)

jackoridd7 commented 1 year ago

hmm i have already

jackoridd7 commented 1 year ago

i restarted and seems to be working now thanks

jackoridd7 commented 1 year ago

panic: I could not decode the users.json file: invalid character 'j' after object key

goroutine 1 [running]: main.readClients(0x3b9aca00?, 0xc00017a240) C:/Users/jacko/Downloads/reddit-placebot-2023-master/reddit-placebot-2023-master/main.go:71 +0xe3f main.main() C:/Users/jacko/Downloads/reddit-placebot-2023-master/reddit-placebot-2023-master/main.go:28 +0x365 PS C:\Users\jacko\Downloads\reddit-placebot-2023-master\reddit-placebot-2023-master>

jackoridd7 commented 1 year ago

[{"username": "jackoridd2", "password": "password"}, {"username: "jackoridd3", "password": "password"}, {"username: "jackoridd7", "password": "password"}, {"username: "sazzacazza", "password": "password"}, {"username: "cazzasazza", "password": "password"}]

r4ngu commented 1 year ago

looks like users.json is not completed, a quote (") is missing after "username", fix it like this

[{"username": "example", "password": "example"}, {"username": "example", "password": "password"}]

not this

[{"username: "example", "password": "example"}, {"username: "example", "password": "password"}]

r4ngu commented 1 year ago

srry for late response again

urkoperez16 commented 1 year ago

the ** are necessary?

r4ngu commented 1 year ago

nope, it was a mistake of mine when using bold text for my example

urkoperez16 commented 1 year ago

aah ok, thanks