Pages:
Author

Topic: [TelegramBot] Merit watcher and Mention Notification Bot (Read 7619 times)

legendary
Activity: 1862
Merit: 1327
I have been struggling to see notification so I registered for the "Merit watcher and Mention Notification Bot" since on the 3rd of May, 2022. But till now I have not received any notification or alert from the forum. But if the notification icon or box was directly in this place, that is, if it is here, it would have been easier for us to identify and received the alert from mentions and merits notify. But the notification is splitted into app. Or sites, it becomes difficult for users. Because the two apps or websites operate with different network strength connection. Particular, Telegram uses strong network while Bitcointalk can be connected even with a slow network.

Therefore, I am making a suggestion that, the notification box or icon should be included in the original Bitcointalk website for easy sight and seeing. And also it will help the newbies and others that have not seen  or do not aware that such bot is an exist in this forum.


I apologize, but I abandoned the project due to lack of time, I am dedicating myself to something else at the moment



 I recommend this    https://bitcointalksearch.org/topic/telegram-yet-another-bitcointalk-notification-bot-merits-mentions-topics-5248878
legendary
Activity: 1022
Merit: 1341
I have been struggling to see notification so I registered for the "Merit watcher and Mention Notification Bot" since on the 3rd of May, 2022. But till now I have not received any notification or alert from the forum. But if the notification icon or box was directly in this place, that is, if it is here, it would have been easier for us to identify and received the alert from mentions and merits notify. But the notification is splitted into app. Or sites, it becomes difficult for users. Because the two apps or websites operate with different network strength connection. Particular, Telegram uses strong network while Bitcointalk can be connected even with a slow network.

Therefore, I am making a suggestion that, the notification box or icon should be included in the original Bitcointalk website for easy sight and seeing. And also it will help the newbies and others that have not seen  or do not aware that such bot is an exist in this forum.
legendary
Activity: 1862
Merit: 1327
as I promised I released (in a special thread) my source code -> https://bitcointalksearch.org/topic/opensource-merit-watcher-and-mention-notification-5271679

now it's free to use and anyone can run this simple project on their machine or shared hosting
it is very simple php code with a sqlite database, very simple to understand and use
hero member
Activity: 882
Merit: 860
I can't find time to fix the bot, or maybe I'm not very good like programmer.

I release opensource so that someone else can work on it and improve it for the good of the community.
I don't know if you like the idea or not, what do you say?

in the end the aim was to give a useful tool to everyone
you are a very good programmer, yours was the first bot i used here on btctalk, when you release the open source code i will try to take a look at it and try to help you fix it
hero member
Activity: 1680
Merit: 583
xUSD - The PRIVATE stable coin - Haven Protocol
You’ve done some improvements, as I’m using this and the other bot (SuperNotifier), both notifications on mentions and earned merits are coming almost simultaneously
legendary
Activity: 1862
Merit: 1327
Thank you all for the merits and the nice words

Then it's decided, I organize myself by doing a bit of cleaning in the code and insert it on github and make you all participate!
Maybe we can fix it properly.

Among other things then you can see how it works, so more confidence.
legendary
Activity: 2758
Merit: 6830
@giammangiato: You did a great job with your bot, my dude. If you open source it, I can take a look after I have some time and help you with some of your issues. I’m sure you are not a bad programmer, otherwise, you wouldn’t have been able to make a bot that never missed. The small issues and the forum rate limits are what breaks it the most. Wink
legendary
Activity: 1862
Merit: 1327
I can't find time to fix the bot, or maybe I'm not very good like programmer.

I release opensource so that someone else can work on it and improve it for the good of the community.
I don't know if you like the idea or not, what do you say?

in the end the aim was to give a useful tool to everyone
legendary
Activity: 3136
Merit: 3213
I got the last notification from the bot on the last Saturday when i was quoted !
Dont know whats the probelm realy as there was never a problem with it but the lst days it even dont shows notifications on  my phone or on my pc.
Just thought maybe its because on my phone the telegram has to be updated , but also this dosnt solved the problem and its still not working for quotes .
Or have i to activate it again ?
legendary
Activity: 1862
Merit: 1327
I also changed the delays and settings

* between one user and another, we have a 10 second delay
* before logging in with bot, wait 10 seconds
* wait 10 seconds before seeing the last merits taken

I could have it logged in once instead of logging in multiple times to get the last merit
hero member
Activity: 1372
Merit: 783
better everyday ♥
Hi giammangiato,
I have been using this bot for a long time, it always works correctly, but lately, I rarely get more notifications even though I get quoted a lot in other topics. I go back to a few topics, I see that there are many topics that my post has been quoted, but I only get 1 or 2 notifications for that every day. I think it has been slowed down. Or its mechanism of action changed, I'm not sure, but it was what I felt. I hope someone can fix it  Cheesy
I described the problem when using your bot, I don't know if there are any problems with it, but I hope you can fix it. Even at this time, i don't get notice when fillipino quotes my post  Roll Eyes
legendary
Activity: 2758
Merit: 6830
@fillippone I sent you a merit, let me know if it got there right.
I still try to edit the delays after your feedback.
I have no other way unfortunately, the forum refuses me the call, maybe I make too many forum calls?
You are probably making too many requests in a short period of time.

I don't know how your bot works, so I can't help a lot, but mine has a scrapper checking the Recent Merits page every 5 seconds and scrapping every merit < 20 minutes old in there. I also scrape all new posts simultaneously, so it has all the information on the merited post (author being the most important). However, many posts can't be find in my DB since they can be older than the bot itself or something wrong may have happened (e.g connection issues), so if this is the case, the bot goes to the merited post and scrapes it, saving it in the database. If the author of the merited post is subbed to the bot, the bot saves the merit data to the database, otherwise, it just ignores it.

While all of this happens, another instance, which only controls the Telegram Bot logic, pulls all unnotified merits from the database (notified === false) and loops through them. If the author is subbed and has merit notifications turned on, the bot sends the notification and sets notified = true.

You need to set a delay between every request to the forum. I'm assuming what you do is check the user's profile for changes in the merit count, and if noticed an increase, goes to his merit page and scrappes the merit data. If that's the case, you need to set a delay between each time the bot checks an user profile and a delay before going to his merit page when noticed a change.

Ex:
- Checks user 1 profile; no merit change;
- Waits 5 seconds.
- Checks user 2 profile; noticed the merit changed;
- Waits 2 seconds
- Go to user 2 merit page; scrapes and sends notification.
- Waits 5 seconds.
- Checks user 3 profile; [...]

If that's not how you do it, you need to see where the bot is failing the requests, which error it's showing, and set a delay if the issue is the forum's rate-limit.
legendary
Activity: 2268
Merit: 16328
Fully fledged Merit Cycler - Golden Feather 22-23
@fillippone I sent you a merit, let me know if it got there right.
I still try to edit the delays after your feedback.
I have no other way unfortunately, the forum refuses me the call, maybe I make too many forum calls?

I received your merit and it was correctly notified.
I don't know anything about technical aspects, but I know @tryninja bot is working with 99 users according to his dashboard.

Maybe you'll find some interesting informations there.
legendary
Activity: 1862
Merit: 1327
@fillippone I sent you a merit, let me know if it got there right.
I still try to edit the delays after your feedback.
I have no other way unfortunately, the forum refuses me the call, maybe I make too many forum calls?
legendary
Activity: 2268
Merit: 16328
Fully fledged Merit Cycler - Golden Feather 22-23
For me, merit notification has worked correctly for 24 hours last time you fixed it (on June 4th).
Then it has stopped working correctly since then.
I hope you can fined a good fix for this, because your work shouldn.'t be wasted!
legendary
Activity: 1862
Merit: 1327
I don't understand, I've increased the time a lot (every 30 minutes) but still can't complete
I am going crazy

I make another attempt, I leave the task every 30 minutes and decrease the delay from 15 sec to 5
do some tests, unfortunately I can't do anything else

update
i write random sleep from 5 to 10 seconds for every actions
copper member
Activity: 1652
Merit: 1325
I'm sometimes known as "miniadmin"
---
Seems to be working fine now; no duplicated notification and I can see how much merit, from who, and where it's been received

Keep up the great work!
legendary
Activity: 1862
Merit: 1327
There are too many users, sorry. I had to bring the cronjob to 30 minutes hoping it will work, so you should get notifications every minute 0 and 30.

To understand if there are merits I make one call per user and if he has a change of amount, he makes another call again.

Alternative, is roll every minute a single user. Try in this way.
legendary
Activity: 3696
Merit: 4343
The hacker spirit breaks any spell
I've got the same problem.
I think you have to increase the delays again, try to increase the delays in the cronjob that you have set rather than putting sleeps.

In my experience, probabily the problem is here. Put 10 minutes and 5 minutes for the two cronjob.
Before it worked because you had few users, now you have more.
legendary
Activity: 2268
Merit: 16328
Fully fledged Merit Cycler - Golden Feather 22-23
Strange.


Duplicates are probably when I was testing, I'm sorry!

I'm trying to understand why it doesn't do scraping correctly, I increased the delay to 15 seconds between user and user and I increased the scraping pass for the merits to 10 minutes

Hey Giammangiato.
Please be aware that merit notification is broken. No information displayed on the thread where I got merit(s) from or who sent those:

"(UP) MERITS 3296 your merit page https://bitcointalk.org/index.php?action=merit;u=1852120 You received merit(s) from"

I think this need an urgent fix!

Pages:
Jump to: