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.
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.