stefan2200 / TWB

Python based bot for Tribal Wars
GNU General Public License v3.0
100 stars 54 forks source link

Error About Browser #62

Open larismuss opened 10 months ago

larismuss commented 10 months ago

What is that error? How can I start this bot? "No custom user agent was supplied, this will likely get you banned.Please set the bot -> user_agent parameter to your browsers one. Just google what is my user agent"

suchencjusz commented 10 months ago

Hello,

Here you can generate user agents https://useragents.io/random. Alternatively you can copy UA from http request from your browser.

larismuss commented 10 months ago

Ok. But how can I use this agent in terminal ?

stefan2200 commented 10 months ago

I'd suggest you use the user agent of your browser since a random one would send two different agents with one single cookie (that will probably get you banned). You are likely getting the error because something went wrong with the initial set-up.

You can just delete the config.json file and restart the bot. If it asks for the user agent, just search Google for What is my user agent it will likely start with something such as Mozilla/5.0 [...] Safari/3234. Just copy that information and when the bot asks for it, right click in the terminal (if you are using Windows) followed by an enter,