Commit Graph

130 Commits

Author SHA1 Message Date
Alessandro Maggio
aaea73bb91 Sync branch with master, fix conflict 2021-02-26 12:21:15 +01:00
Alessandro Maggio
6de210b496 Choose gained/lost in the bet results. Close #93 2021-02-25 11:09:36 +01:00
Alessandro Maggio
83c6cfb0ee Merge branch 'master' into improvement-drops 2021-02-18 22:17:31 +01:00
kelukelol
bba82af892 Update WebSocketsPool.py
lolz
2021-02-18 03:39:24 +02:00
Alessandro Maggio
5d09074572 Little code refactory where It's possible 😊 2021-02-14 12:22:36 +01:00
Alessandro Maggio
4bdc726ba2 Merge branch 'master' into improvement-drops 2021-02-13 12:05:55 +01:00
Alessandro Maggio
6e0ba67f80 The use of __slots__ can save more RAM. There are multiple articles online, I've read this: https://tech.oyster.com/save-ram-with-python-slots/ 2021-02-13 11:48:22 +01:00
Alessandro Maggio
4fcaeae4cf Fix conflict, merge master with improvements-drops 2021-02-13 11:18:48 +01:00
Alessandro Maggio
9a36dbd862 Use reconnect flag for manage ws reconnection and main threads 2021-02-12 22:12:56 +01:00
Alessandro Maggio
175d6abe12 Instead of appending every time a new ws at the end of array replace at same index. Seems to be a good solution. 2021-02-12 00:15:47 +01:00
Alessandro Maggio
2c843bc252 Start with drops improvement. Currently we try to handle the inventory and dashboard for correct percentage logs. Save in stream Object also the drops drops_available. This commit and the future are all related to #65 #40 #35 #27 2021-02-11 21:35:26 +01:00
Alessandro Maggio
7c2dd53951 Appen new ws also when the pending_topics are gte 50 2021-02-11 16:58:48 +01:00
Alessandro Maggio
137d5d5e34 I don't know why but I've already done this commit yesterday but It was lost 😕 2021-02-11 10:42:14 +01:00
Alessandro Maggio
46de5b3c26 Merge branch 'master' into reconnection-error 2021-02-10 15:17:10 +01:00
Alessandro Maggio
ca3c5037af Prevent multiple subscription to the same topics from multiple ws. https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/54\#issuecomment-776696545 2021-02-10 15:17:02 +01:00
Alessandro Maggio
696a78197c Attempt to handle all connection error/exception. Return {} in case of exception and check correctly with If statement if we are right or not. Don't recconect with lost PING if connection in not available 2021-02-09 10:44:35 +01:00
Alessandro Maggio
8d00d6da6f Reduce prediction window by 3/6s - Collect more accurate data for decision 2021-02-08 08:37:13 +01:00
Alessandro Maggio
fb36fa3dbb On Exception is_closed=True. Rety after x random minutes if the internet connection It's not available 2021-02-07 16:19:39 +01:00
Alessandro Maggio
8205f019de Fix [] vs None 2021-02-06 19:55:33 +01:00
Alessandro Maggio
7a895bf9c3 Clear code, update readme 2021-02-06 16:45:34 +01:00
Alessandro Maggio
deb6f611d2 Sync repo with master branch 2021-02-06 16:32:40 +01:00
Alessandro Maggio
3ff56d401a Merge pull request #51 from Tkd-Alex/betting-improvement
Multiple bet improvement: filter, stealth_mode
2021-02-06 16:25:43 +01:00
Alessandro Maggio
67e36a66ad Merge pull request #49 from Tkd-Alex/ws-pool
Array of ws in WebSocketsPool.py
2021-02-06 16:25:13 +01:00
Thomas Couchoud
78b64ca3b2 Remove test log & use category PREDICTION instead of PREDICTION-TEST 2021-02-05 08:47:07 +01:00
Alessandro Maggio
d71f37ad58 oh damn 2021-02-04 23:52:29 +01:00
Alessandro Maggio
d84a45bb0d Reconnection automatically after ws close. def end() check if ws is None else forced_close. Move reset method inside __init__ 2021-02-04 11:03:51 +01:00
Alessandro Maggio
4ef5baddac After the first test i lose the ability to ping twitch server and I'm able to reconnect. I think that an error raised (now logged) and ws.keep_running was set to False by lib. So remove handling of keep_running. Log close and error so let's wee see 2021-02-04 00:55:34 +01:00
Thomas Couchoud
80f8ebd476 Attempt to fix PREDICTION showing with count -1 in final report 2021-02-03 18:35:09 +01:00
Alessandro Maggio
a1d472f2fa Get the latest element from array with [-1] instead of len(item) - 1, thanks for the hit! @RakSrinaNa 2021-02-03 14:57:15 +01:00
Alessandro Maggio
08b07a9730 is False, instead of Not condition 2021-02-03 13:38:04 +01:00
Thomas Couchoud
91a7bda0da Fix lint report again 😅 2021-02-03 13:34:17 +01:00
Thomas Couchoud
6565b714d9 Fix lint report again 2021-02-03 13:33:10 +01:00
Thomas Couchoud
b7c1a1de06 Fix lint report 2021-02-03 13:31:08 +01:00
Thomas Couchoud
e92f4a58aa Display gained as "+x" if x is positive 2021-02-03 13:25:48 +01:00
Alessandro Maggio
51c0d6dcfa According to #42 create and manage an array of ws in pool class. Related also to #39. 2021-02-03 13:12:25 +01:00
Thomas Couchoud
0adf168dea Display prediction gain instead of points won & merge prediction refund into prediction 2021-02-03 13:07:35 +01:00
Alessandro Maggio
92648fa6db According to #41 we can use a random hex of 32 chars as transactionID 2021-02-03 12:02:38 +01:00
Alessandro Maggio
415a066414 -- fix 2021-02-03 11:26:37 +01:00
Alessandro Maggio
130e45bf88 Just fix the prefix for label -- + 2021-02-03 01:22:38 +01:00
Alessandro Maggio
cd0c1887f7 Get points annotation in charts.html 2021-02-02 23:09:09 +01:00
Alessandro Maggio
008064eb3c Create annotation points for charts. Save LOSE, WIN Prediction and WatchStreak 2021-02-02 21:49:34 +01:00
Alessandro Maggio
602be59359 Save in a .json file the balance history 2021-02-02 11:55:39 +01:00
Alessandro Maggio
00dbadc14e Fix betting after the last update. Update README with single settings (but not completed) 2021-02-02 00:26:37 +01:00
Alessandro Maggio
97e6751dfe Code refactory 😄 2021-02-02 00:14:45 +01:00
Alessandro Maggio
1dee172a6c Call self.start_bet(event) inside place_bet(event) - Attempt to speed-up the bet system so we don't need to make a pause and skip others bet -- https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/28\#issuecomment-771075169 #28 2021-02-01 22:56:13 +01:00
Alessandro Maggio
a24263bcd5 Sync with current master branch 2021-02-01 21:50:24 +01:00
Alessandro Maggio
3c4fb53ffc isort and black for master branch of Element21, ready for PR 2021-02-01 16:16:06 +01:00
Aiden Marchiori
4a7428c201 Fix EVERYTHING after a good night's rest 2021-01-31 10:38:11 -05:00
Aiden Marchiori
e2ca0e5f2c Actually Actually Make it Work LOL :bug:x2 2021-01-30 23:07:46 -05:00
Aiden Marchiori
998ac005ea Fix broken upstream merge 2021-01-30 22:39:16 -05:00