RogerioBlanco / PixelCanvasBot

A bot to pixelcanvas.io
63 stars 24 forks source link

Error main.py #97

Open ghost opened 5 years ago

ghost commented 5 years ago

pixelcanvas_bot_error

No idea about this error.

ZeedyDF commented 5 years ago

You have to install the packages before trying to run the bot

Take a look here https://github.com/RogerioBlanco/PixelCanvasBot#setup-bot

ghost commented 5 years ago

You have to install the packages before trying to run the bot

Take a look here https://github.com/RogerioBlanco/PixelCanvasBot#setup-bot

Thank u, I installed the package, but now say this

jsondavid

Pr0phet-of-Fear commented 5 years ago

This project is all but abandoned. You would be better off using this version instead.

ghost commented 5 years ago

This project is all but abandoned. You would be better off using this version instead.

Wrong link

Pr0phet-of-Fear commented 5 years ago

Well it was the right link. Looks like it was taken down.

RogerioBlanco commented 5 years ago

I just want to clarify one thing: I don't fixed, yet, the bot because I don't have time for now, but anyone that wants fix I won't oppose

TheRdMelon commented 5 years ago

I cloned the fixed version while it was still up. https://github.com/TheRedMelon/KekvasBot

Pr0phet-of-Fear commented 5 years ago

Is that Traanvas just renamed?

TheRdMelon commented 5 years ago

Yeah, not the most recent version before they made it private but it still works.

Pr0phet-of-Fear commented 5 years ago

Do you know why they took it down/made it private?

TheRdMelon commented 5 years ago

The commies and trannys in a war with Kekistan, they likely don't want us or anyone who would do them harm using it. But I'd already cloned it and made some big improvements in a private repo. And no, I'm not giving out those modifications I'm afraid. I have no personal reason why I wouldn't want others to use this version though so I'm keeping it up.

4n0nct commented 5 years ago

Yours has stopped working too since yesterday:

File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "/home/x/KekvasBot/src/bot.py", line 177, in update_canvas EnumColor.index(raw[index] >> 4)) IndexError: bytearray index out of range

Retried get_ws for time 1/4. JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Cloudflare changes again ?

TheRdMelon commented 5 years ago

No, complete overhaul basically. I don't know enough to fix it though, I've never really done anything with networking before. The requests go through but are unsuccessful. I'll keep looking into it but you'll probably have to wait until someone else updates or releases one.

4n0nct commented 5 years ago

I'm not good either for what's about networking, I'll wait and see, maybe traanvas will reappear with the magic trick once again like months ago. Good continuation.

Pr0phet-of-Fear commented 5 years ago

I've been looking at the code, and the requests the site sends. I've tried some things, but haven't got anything to work. I don't really know enough about any of this to make a proper fix. If I do by some miracle make a fix, I will make pull requests.

What I know so far is that the api was moved from https://pixelcanvas.io/api to https://europe-west1-pixelcanvasv2.cloudfunctions.net/

TheRdMelon commented 5 years ago

'a' parameter has been replaced with 'wasabi' the paths to the apis have been changed pixelio.myself() isnt working can't properly get the url for the websocket

4n0nct commented 5 years ago

So, in the expectation of a solution, do one of you know any other fonctionnal bot ? I tried the new dadido, but can't make it work on my penguin toaster.

TheRdMelon commented 5 years ago

Link to the bot thats been used in the recent EMF raids was posted by HF or whoever has that "PixelerM" alt in the discord. https://gitlab.com/Theemacsshibe/cl-pixelcanvas/tree/master/

4n0nct commented 5 years ago

Thank you very much

TheRdMelon commented 5 years ago

On further inspection it looks like you need to login... I'm looking around and might see if I can figure out how to fix the old bot using this ones source code

TheRdMelon commented 5 years ago

Never mind, found the login: "GoogleMurrayBookchin"

4n0nct commented 5 years ago

I feel retarded with portacle lel. It is mandatory to use it ?

TheRdMelon commented 5 years ago

uhh good luck trying to figure it out without, it's really easy just follow guide.

kubaello commented 5 years ago

I've updated the URLs and the bot seems to be working again. #99

4n0nct commented 5 years ago

That notification mail I have just received was a really good surprise. Indeed, it works, thanks for your job

Pr0phet-of-Fear commented 5 years ago

A surprise, to be sure, but a welcome one.

4n0nct commented 5 years ago

hum, there is still a disturbing thing. It doesn't detect alreay painted pixel, it will put white on white for exemple, so for my actual drawing it has not evolved since 11 days cause it paints the pixels which are already here. The status command confirm:

already painted: 0px not painted: [the total number of px]

Pr0phet-of-Fear commented 5 years ago

Okay, so this probably deserves a new issue; but anyway, have you tried deleting the bot and redownloading it? I've been using the bot (well, yes, but actually no) since the update and encountered no such issue.

4n0nct commented 5 years ago

That's what I did few minutes ago. Do I open a new issue ?