Optional Best Diff Notifications #83
Optional Best Diff Notifications #83swordfish6975 wants to merge 9 commits intobenjamin-wilson:masterfrom
Conversation
|
Could you test of of the changes I made, just cleaned up a few things |
|
hi @swordfish6975 , thanks for this nice PR, testing this out on our public-pool server. |
|
Another improvement would/could be, that when using the TG bot, another option like Greetings |
|
@warioishere cool to see that your testing it out. Some of what your asking for might just be that I put the trigger line, at Line 545. public-pool/src/models/StratumV1Client.ts Line 545 in 634ffbf Perhaps if i put it inside the other if statement at line (above or below) 550 public-pool/src/models/StratumV1Client.ts Line 550 in 634ffbf It would probably be way less spamy, though I have come to get used to the flury of diff notifications on the odd occasion the wifi drops to my miner 😂 |
|
This logic can be implemented in the Telegram bot itself, by maintaining a simple in-memory Map<string, number> like so: This avoids spam and ensures that users only receive updates when a real improvement is found. |
Make it way less spamy






Two new true/false settings:
DISCORD_DIFF_NOTIFICATIONS
TELEGRAM_DIFF_NOTIFICATIONS
Also added a check for subscribing to telegram, if you're already subscribed it will just tell you instead of adding you to the sqlite database again (this would cause multiple notification spam previously).
I have done more testing on the telegram side of things as I don't use the discord part.