Pauan / SaltyBetBot

Bot which automatically bets on saltybet.com
40 stars 12 forks source link

Bot Not Functioning In Chrome #21

Closed Zyrixion closed 4 years ago

Zyrixion commented 4 years ago

So as you know I've been running the bot recently, but I've been doing so using a self-contained Chromium browser install to run an alt account I use(d) for bot testing, but I've now tried to install it on Chrome proper. However it does not function; the script appears to load without any obvious errors in the console readout, and the player window is altered, but there are no stats readouts, and the bot does not bet. I've tried copying the source directory and using that in case it was conflicting with itself somehow across running both, and disabling addons that I thought might be causing it an issue, but to no avail.

Pauan commented 4 years ago

Are you logged in to saltybet.com?

When you checked the console, did you check the background page (in chrome://extensions) and the console in saltybet.com?

Zyrixion commented 4 years ago

Yeah, I'm logged in, I can see my total and bet. Actually, funnily, it's been betting, but only betting 1, on red (and not because it's exhibs), and the data is not showing when the player is disabled.

Ah, here we are, extension errors on the extensions page. https://i.imgur.com/BgNpO9x.png Sanity question, there's nothing that would prevent you from running the bot in chrome and on a seperate chromium install at the same time is there?

Pauan commented 4 years ago

I just tested it on Chrome 84.0.4133.0 (Official Build) canary (64-bit) and it works fine. There shouldn't be any issue with running it on multiple browsers, especially if the browser profiles are different.

The only way that error could happen is if it somehow wasn't loaded as an extension, or if there's a bug in Chrome.

What is your Chrome version? What is your OS?

Zyrixion commented 4 years ago

Version 81.0.4044.129 (Official Build) (64-bit) OS is Windows 10 Professional

Using the stable branch of Chrome. Tried again disabling all but one other extension (that would be a massive pain in the ass to do so), no help there.

Doomthebroom commented 4 years ago

I am having the exact same issue today, 6/4. Bets 1 dollar, stats stopped appearing. Edit: nevermind, it somehow is working again hours later.

Pauan commented 4 years ago

@Zyrixion Has the situation improved at all (maybe with a new version of Chrome)?

I've never seen that error, so I'm not really sure how to go about fixing this.

wargamesqcf commented 4 years ago

issue is still occuring, its not pulling the records.

paquin39 commented 4 years ago

same here just started betting one dollar in non exhibs. Now it's not calculating anything it seems.

Uncaught (in promise) Error: Extension context invalidated.

js/saltybet.js:33 (anonymous function)

return chrome.runtime.getURL(url);

Edaran123 commented 4 years ago

I have also been having this problem. I believe it may have something to do with a glitch with SaltyBet, where it will enter "tournament mode" one match early. Is it possible that this glitch could also affect exhibitions mode? Maybe the bot isn't reading the transition from exhibs, and so treats every match like an exhibition (e.g. only betting $1).

Veeloa commented 4 years ago

I got the 1$ bets now and my bot seems to think WAIFU4u is dead

Pauan commented 4 years ago

@wargamesqcf @paquin39 Those sound like completely different issues.

@DaBigKahuna77 @Veeloa This issue is about the bot not loading at all. The problem with the bot not betting is because of Twitch making changes to the chat. I have fixed that, please upgrade.

paquin39 commented 4 years ago

I'm sure its just being buggy as it was working perfect before. Ill give it a couple days and reload everything!

Update: bot just started betting again but only in tourney mode and only $1. Maybe it's formula got mixed between modes and it can't fix itself. I also have completed upgrade process.

Edaran123 commented 4 years ago

I have also upgraded, and the issue persists. Additionally, the overlay is now completely blank when placing bets. Is it required to join "mugen.saltybet.com" as opposed to just saltybet.com? The former does not load the Twitch overlay.

Fuzznimp commented 4 years ago

The problem with the bot not betting is because of Twitch making changes to the chat. I have fixed that

Fixed the issue on my side. Thanks for the quick push.

paquin39 commented 4 years ago

@wargamesqcf @paquin39 Those sound like completely different issues.

So i removed salty bet completely from my computer and reinstalled everything. I then performed the git pull upgrade immediately after unpacking the bot into chrome. Make sure salty bet is not opened then hit the reload or refresh. That got it working for me. Hope you get it fixed!

Pauan commented 4 years ago

@DaBigKahuna77 Any of the URLs will work (http://saltybet.com, http://www.saltybet.com, http://mugen.saltybet.com, or https://live.saltybet.com)

If you do git log -n 1 what does it show?

Edaran123 commented 4 years ago

@paquin39 I did that (completely un- and re-installed everything) and it works again, thanks! And thanks to @Pauan for making such a great tool and continuing to troubleshoot and keep it updated years later!

paquin39 commented 4 years ago

@Pauan ya if you got a paypal or venmo and take donations let me know! This is worth at least 10 USD!

wargamesqcf commented 4 years ago

It all seems related, but deleting the plugin and re-downloading it via git fixed the problem

HiMyNameIsL commented 4 years ago

I have the same issue happening to me ever since yesterday. It stopped betting in the middle of a tournament for a while and is now only betting $1 on red with no stats loaded. When i check the console for background.html there is an error for an unknown url scheme. Capture1

and when i check on console on saltybet.com there are two errors for unknown URL scheme pointing at two different files. Capture2

Ive tried removing the extension completely and re-downloading it from git but the issue remains.

Pauan commented 4 years ago

@HiMyNameIsL Thanks for letting me know. Twitch recently changed the way their chat works, which caused this bot to break. I have fixed it, so please upgrade.

I'm going to assume that this issue has been fixed, but if not I can reopen it.