mydicebot / mydicebot.github.io

★MyDiceBot★ - Ultimate Bitcoin Dice Bot. Bet More, Earn More!
https://mydicebot.com
GNU General Public License v3.0
100 stars 62 forks source link

Slow bet speed on Yolodice. #111

Closed Luft21 closed 4 years ago

Luft21 commented 4 years ago

even when i bet with higher basebet, the bet speed still slow. Can you make it faster?

Luft21 commented 4 years ago

I just found out in your ~/src/api/models/yolo.js , that every create_bet() method the code will try to "await this.connect(req.session.apiKey);" and when I delete it the bet run faster than before.

but, there is an error ("Memory Leak: setMaxListener"). so, i think it causes by the "await this.connect(req.session.apiKey);" i deleted before. so can you update it to setMaxListener to 101 and refresh listener every 100 API call maybe? so, the betspeed will not slow.

P.S: resetseed helps refresh listener too

@mydicebot

Luft21 commented 4 years ago

also, i can't use resetseed() in my script for console app. so, i add little code in betfunc() loop.

please fix.. @mydicebot

mydicebot commented 4 years ago

https://github.com/mydicebot/mydicebot.github.io/releases/tag/v20.8.9

mydicebot commented 4 years ago

https://github.com/mydicebot/mydicebot.github.io/releases/tag/v20.8.15