RogerioBlanco / PixelCanvasBot

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

Fix API URLs and duck value #99

Closed kubaello closed 5 years ago

kubaello commented 5 years ago

I've updated the API URLs, but unfortunately different functions use different hosts, so the code became slightly more complicated (host is extracted from URL with a regexp).

Some things may be obsolete - I don't understand the purpose of line 40: "self.duck = 'a'" and the following code setting self.duck from cookies.

However, with these changes the bot seems to work again.