chess-auto-bot icon indicating copy to clipboard operation
chess-auto-bot copied to clipboard

Random download block in the terminal

Open boipussy opened this issue 2 years ago • 4 comments

Hi,

I'm just wondering why after playing around with this for a bit, why did this script randomly start to download something? I saw it displayed in the Terminal and I unfortunately didn't copy it or screenshot it but it was like "████████████ 100% " randomly in the console.

I've used it for 2 days now and it didn't do this until last night.

Could you explain what that would be or does this bot update automatically?

boipussy avatar Mar 24 '23 05:03 boipussy

Hello @boipussy. Yes this is normal behaviour. It probably happened when you pressed the "Open browser" button. This happens because the program tries to check if there is a new version of chromedriver and in your case it found one so it started downloading it. This can be seen on the file src/gui.py inside the on_open_browser_button_listener() function in the line self.chrome = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)

PanagiotisIatrou avatar Mar 24 '23 09:03 PanagiotisIatrou

Hi @PanagiotisIatrou

Sorry for the late reply, yeah I actually looked into it with a friend and realized it used a webdriver_manager which later goes through driver_cache and the self.valid_range is defaulted to 1 (day).

I managed to replicate this and have my terminal constantly download this by running Ccleaner to delete the cache, so yeah kinda confirmed it being the Selenium package but thank you so much for the detailed reply as well <3

I do have one more question in regards to 'downloads' though, and thought I'd ask here instead of creating another thread. Sometimes when I am playing around with the bot, it randomly will want to download something from the Chrome Window and download a file into my downloads directory simply named 'sync'

Haven't really looked into this but I can't figure out what it would be from the top of my head. Could you explain that also, thanks :)

boipussy avatar Mar 29 '23 08:03 boipussy

Well, that is weird and I have no idea what could be causing this as there is nothing else in the codebase that tries to download something. Are you sure this is not caused by something else? Also, does this file stay when you close the bot, and if so could you check its content?

PanagiotisIatrou avatar Mar 30 '23 19:03 PanagiotisIatrou

I can see it in the Chrome window itself, at the bottom of the window sometimes it will say 'syncing' and then in my downloads an empty file named 'sync' with 0 size appears in my download folder. Honestly not sure what it could be then. Perhaps its something to do with all the ads on Chess.com? But even then, that would be the first time I've ever experienced website ads downloading a file with nothing in it on my PC.

Yes, the file does stay actually when I close the bot. I recently reinstalled Windows, but next time I use the bot I'll see if it appears again.

boipussy avatar Mar 31 '23 12:03 boipussy