Bitcoin Forum
April 20, 2021, 07:10:33 AM *
News: Latest Bitcoin Core release: 0.21.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 »  All
  Print  
Author Topic: [TelegramBot] Merit watcher and Mention Notification Bot  (Read 7024 times)
giammangiato
Hero Member
*****
Offline Offline

Activity: 770
Merit: 554


View Profile
December 12, 2019, 05:01:49 PM
Last edit: May 19, 2020, 09:39:26 AM by giammangiato
Merited by DarkStar_ (26), Rath_ (25), fillippone (25), Micio (20), LoyceV (18), babo (16), squatz1 (15), joniboini (10), DdmrDdmr (10), xandry (4), PrimeNumber7 (3), d.kevin29 (3), duesoldi (2), Halab (2), aundroid (2), Heisenberg_Hunter (2), cabalism13 (2), Maus0728 (2), Speculatoross (2), vapourminer (1), Daniel91 (1), examplens (1), bL4nkcode (1), poptok1 (1), btcltcdigger (1), Vispilio (1), big_daddy (1), taufik123 (1), Lucasgabd (1), libert19 (1), Coin-1 (1), asu (1), tg88 (1), cryptobaboon (1), Bttzed03 (1), DroomieChikito (1), o_e_l_e_o (1), TheBeardedBaby (1), Findingnemo (1), Blacknavy (1), witcher_sense (1), AakZaki (1), Husna QA (1), madnessteat (1), dkbit98 (1), FontSeli (1), goldkingcoiner (1), Nellayar (1), mikhailr (1), RapTarX (1), efialtis (1), lulucrypto (1), bgaf (1), asayoyaasa (1), Rikafip (1), -CryptoViking- (1)
 #1


buy me a beer
# BTC >> bc1q92n28m7eve8ncdq9n2ltu8vmrfuzfuy6kltjf5 <<
# ETH >> 0xdf868c793cac0a38cad4fd2320af989d60c57095 <<
# LTC >> MBJhT2PTxE8YXYR9NAQFSJnHuouo2s6mGJ <<
(VPS cost 5$/month)

List of kindly donors:
  • efialtis
  • big_daddy
  • iasenko

Hello folks!
On @fillippone request

I made a Telegram bot to monitor personal merits stats and to be notified of mentions or quotes in posts!!!


Right sobstitute of Maggiordomo bot Smiley

Merit Watcher:
old

new


Mention Notifier:






To use it:
  • Open telegram chat t.me/Btctalk_meritbot
  • Write or press /start
  • Set your uid with /uid $$BITCOINTALKUID$$
  • Set your nick with /nick $$BITCOINTALKNICK$$
  • Wait. Every 5 minutes the bot checks your merits and if it has changed sends a Telegram message (like in the screenshot)

Example for me:
Code:
/start
  • Set uid with
Code:
/uid 889300
  • Set nick with
Code:
/nick giammangiato
  • That's it!





Tech information:
  • bot check merits every 5 minutes
  • bot check mentions every 1 minutes



I hope it is working for everyone.
This is my first bot. Don't be rude with me!
1618902633
Hero Member
*
Offline Offline

Posts: 1618902633

View Profile Personal Message (Offline)

Ignore
1618902633
Reply with quote  #2

1618902633
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
giammangiato
Hero Member
*****
Offline Offline

Activity: 770
Merit: 554


View Profile
December 12, 2019, 05:11:11 PM
Last edit: May 19, 2020, 09:42:10 AM by giammangiato
 #2

usage statistics:
https://giammangiato.altervista.org/bot-merits/index.php [at-moment-not-work]

list of commands:
  • /uid <number> | set your bitcointalk uid uid
  • /myuid | your setted bitcointalk uid
  • /nick <nick> | set nick for mention notifier
  • /poke btctalknick | poke user without know his telegramid (for privacy)

regex for mention notifications:
Code:
$re  = '/(\@[a-zA-Z0-9\-\_\s]*)/m';$
$req = '/Quote from: ([a-zA-Z0-9\-\_\s]*)/m';

features requested:
  • FEATURE: trust change notification
  • FEATURE: You can add Trust notifications weekly. Those who add or remove you trust list. Like this page. Or you can link directly, when the update takes place. Usually @Loycev updates on Tuesdays.
  • FIX: There is no need for notification when the name is mentioned in the quote in quote.
  • FEATURE: More sentences than quotes. It would be good. 6-7 words are not understandable.
  • FEATURE: btc address watch and notify
  • FEATURE: unsubscribe from bot (without stopping it)
  • FEATURE: review ux with buttons

features done:
  • FEATURE: try to scrape every merits line on merits page - need alt account / Merit sender and topic link. As on the Merit page.
  • migration to real db DONE
  • fix poke msg to unknow user DONE
  • add space in regex DONE
  • preview of message (notification) @Kalemder DONE
  • if unsubscribed, poke return message @fillippone DONE
  • fix: not sent notification when autoquote DONE
  • add quoting to mention DONE
  • fix stored link DONE
fillippone
Legendary
*
Offline Offline

Activity: 1036
Merit: 5336


Merit Rascal wannabe Merit Cycler


View Profile
December 12, 2019, 05:16:06 PM
Merited by giammangiato (2)
 #3

Registered.
But I want real time! Constant merit notification!
#meritruinedmylife.

Also, put a nice picture as channel image. Imagination is the limit.


giammangiato
Hero Member
*****
Offline Offline

Activity: 770
Merit: 554


View Profile
December 12, 2019, 05:17:45 PM
Merited by fillippone (1)
 #4

Registered.
But I want real time! Constant merit notification!
#meritruinedmylife.

Also, put a nice picture as channel image. Imagination is the limit.




Picture? Ummm ok. Give me a picture Smiley and i insert it.
Real time i think not. I can decrease from 60 minutes to 10 minutes, when i'm sure work well.


And i think i can add:
- stats (like avg daily merits) for example
lulucrypto
Sr. Member
****
Offline Offline

Activity: 711
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
December 12, 2019, 05:39:39 PM
 #5

Ha ha, I really like this kind of project ! Cheesy

I signed up Smiley

Small question, how do you get the merits of each user ?

Do you use the downloadable merit file ?

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
TryNinja
Legendary
*
Offline Offline

Activity: 1708
Merit: 3255


Merit & Notifications bot: @BTTSuperNotifier_bot


View Profile WWW
December 12, 2019, 05:57:15 PM
Last edit: December 12, 2019, 06:24:11 PM by TryNinja
 #6

Small question, how do you get the merits of each user ?

Do you use the downloadable merit file ?
Apparently he (probably) checks your merit count and sees if it increased.

OP: Something is wrong. I already got 4 messages in 4 minutes saying the same thing:
Quote

And it keeps happening.

Honestly, I think that if you track the page linked above of recent merits, and notify people according to the new merit transactions, you can have a better bot (notifying people based on every new transaction; e.g: "you received 2 merits for your post XXXX.") rather than just checking the merit count.

lulucrypto
Sr. Member
****
Offline Offline

Activity: 711
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
December 12, 2019, 06:22:19 PM
 #7


Apparently he (probably) checks your merit count and sees if it increased.

OP: Something is wrong. I already got 4 messages in 4 minutes saying the same thing:

Um, yes it's most likely.


OP: Something is wrong. I already got 4 messages in 4 minutes saying the same thing:

Yes I have the problem too. In addition I do not know why I receive constant notifications from the bot ( Every ~ 10 seconds ). So I muted the bot.

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
fillippone
Legendary
*
Offline Offline

Activity: 1036
Merit: 5336


Merit Rascal wannabe Merit Cycler


View Profile
December 12, 2019, 06:44:52 PM
 #8

Same problem here.
I want a notification only when my merit count increases.
Sadly I had to mute the bot.

This bring to mind: how do I unsubscribe?


asu
Legendary
*
Offline Offline

Activity: 1302
Merit: 1134



View Profile
December 12, 2019, 06:51:44 PM
Merited by fillippone (1)
 #9

I happened to encounter same problem on my end too.

This bring to mind: how do I unsubscribe?
Try this:
• Hover into the bot avatar (the circle one).
• Click it.
• Now, there's 3 dots icon in profile page.
• Click and you'll see an option "stop bot".

███████████████████████████
██    ▀█████████████▀    ██
██      ▀████▀████▀      ██
███▄    ▄██▀   ▀██▄    ▄███
█████▄▄██▀  ▄▄▄  ▀██▄▄█████
███████▀    ███    ▀███████
██████               ██████
███████▄    ███    ▄███████
████▀ ▀██▄  ▀▀▀  ▄██▀ ▀████
████▀   ▀██▄   ▄██▀   ▀████
██▀   ▄▄ ▄███▄███▄ ▄▄   ▀██
██▄ ▄█████████████████▄ ▄██
███████████████████████████
.
..Duelbits..
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████████████████
██ ▄▄▄▄ ███████████ ▄▄▄▄ ██
██ █ ▄▄▄▄ ███████ ▄▄▄▄ █ ██
██ ▀ █ ▄▄▄▄ ███ ▄▄▄▄ █ ▀ ██
████ ▀ █  █ ███ █  █ ▀ ████
██████ ▀▀▀▀ ███ ▀▀▀▀ ██████
██▄ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄ ▄██
██▄██████▌▐▀▄▀▄▀▌▐██████▄██
██▀▀▀████ █▄▀▄▀▄█ ████▀▀▀██
█████▄▄▄ ▄▄▄▄▄▄▄▄▄ ▄▄▄█████
███████▌▐█████████▌▐███████
██▄▄▄▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▄▄▄██
███████████████████████████
███████████████████████████
███████████████████████████
█████████████████▀██ ██▀███
██████████████████▄███▄████
██ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ██
██ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ██
██ ██████ ▐█████▌ █ ██ █ ██
██ █▀▄▄▀█ ▐▀▄▄▄▀▌ ██▄▄██ ██
██ █▄▀▀▄█ ▐▄▀▀▀▄▌ ▀▀▀▀▀▀ ██
██ ██████ ▐█████▌ ██████ ██
██ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ██
██ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ██
███████████████████████████
███████████████████████████
██▀▄▄▄▄▄▄▄▄▄▄▄▄▀███████████
██ █▀▄▀▄▀▄▀▄▀▄█ ███████████
██ █▀▄▀▄▀▄▀▄ ▄▄▄▄▄▄▄▄▄▄▄▀██
██ █▀▄▀▄▀▄ █ █▀▄▀███████ ██
██ █▀▄▀▄▀▄ █ ██▄████████ ██
██ █▀▄▀▄▀▄ █ ████▀▄▀████ ██
██ █▀▄▀▄▀▄ █ ███ ███ ███ ██
██ █▀▄▀▄▀▄ █ ████▄▀▄████ ██
██ ▀▀▀▀▀▀▀ █ ████████▀██ ██
██ ▀▀▀▀▀▀▀ █ ███████▄▀▄█ ██
██▄▀▀▀▀▀▀▀▄▀ ▀▀▀▀▀▀▀▀▀▀▀▄██
███████████████████████████
███████████████████████████
████████▀▀▄▄▄▄▄▄▄▀▀████████
█████▀▄▄███████████▄▄▀█████
████ █████████████████ ████
███ ███████████████████ ███
██ █████████████████████ ██
██ █████████████████████ ██
██ ████████████   ██████ ██
███ ███████████   █████ ███
████ █████████████████ ████
█████▄▀▀███████████▀▀▄█████
████████▄▄▀▀▀▀▀▀▀▄▄████████
███████████████████████████
███████████████████████████
██ ▄▄▄▀▀███████████▀▀▄▄▄ ██
██ █████▄▀███████▀▄█████ ██
███▄▀█████▄▀███▀▄█████▀▄███
█████▄▀█████▄▀██████▀▄█████
███████▄▀█████▄▀██▀▄███████
█████████▄▀█████▄▀█████████
███▀▄▄▀▀▄██▄▀█████▄▀▀▄▀████
████ ██▄▀████▄▀███▀▄██ ████
████▀▄███▄▀▄███▄▀▄███▄▀████
██▀▄██▀▄▀▀█ ███ █▀▀▄▀██▄▀██
███▄▀▄████▄█████▄████▄▀▄███
███████████████████████████
LIVE SHOWS
SLOTS
BLACKJACK
  ROULETTE
  DUELS
▬▬▬▬▬▬▬▬
CASHBACK
██&██
RAKEBACK
██
██
██
██
██
██
██
██
██
██
██
██
██
.
...Register Now...
giammangiato
Hero Member
*****
Offline Offline

Activity: 770
Merit: 554


View Profile
December 12, 2019, 07:16:48 PM
Last edit: May 03, 2020, 09:48:12 PM by mprep
Merited by xandry (1), fillippone (1)
 #10

Ha ha, I really like this kind of project ! Cheesy

I signed up Smiley

Small question, how do you get the merits of each user ?

Do you use the downloadable merit file ?

thank you
guest cant view a list of merits (give and receive, i cant do this



OP: Something is wrong. I already got 4 messages in 4 minutes saying the same thing:
Quote

And it keeps happening.

Honestly, I think that if you track the page linked above of recent merits, and notify people according to the new merit transactions, you can have a better bot (notifying people based on every new transaction; e.g: "you received 2 merits for your post XXXX.") rather than just checking the merit count.

sorry my mistake, i try to put from 60 minutes to 3 minutes, i try another time tomorrow

Same problem here.
I want a notification only when my merit count increases.
Sadly I had to mute the bot.

This bring to mind: how do I unsubscribe?



for unsubscribe stop bot ad dont mind



little question guys: the bot is still spamming?

i think not at moment

[moderator's note: consecutive posts merged]
TryNinja
Legendary
*
Offline Offline

Activity: 1708
Merit: 3255


Merit & Notifications bot: @BTTSuperNotifier_bot


View Profile WWW
December 12, 2019, 07:22:07 PM
 #11

guest cant view a list of merits (give and receive, i cant do this
Then log in. Most bots are logged in when they scrape the forum. Both Loyce and Piggy use an account for their bots.

sorry my mistake, i try to put from 60 minutes to 3 minutes, i try another time tomorrow
The bot will always message you once every 60 minutes with your merit count? That surely isn't the best solution. It should message you only when you receive new merits, and only once.

little question guys: the bot is still spamming?
No.

lulucrypto
Sr. Member
****
Offline Offline

Activity: 711
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
December 12, 2019, 07:23:54 PM
 #12

Ha ha, I really like this kind of project ! Cheesy

I signed up Smiley

Small question, how do you get the merits of each user ?

Do you use the downloadable merit file ?

thank you
guest cant view a list of merits (give and receive, i cant do this

Hmm, how do you do in this case ?

Also, depending on what language you have developed your bot, it is possible to open a session on Bitcointalk with an "ALT" account to get the merits list Wink

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
giammangiato
Hero Member
*****
Offline Offline

Activity: 770
Merit: 554


View Profile
December 12, 2019, 07:24:52 PM
 #13


The bot will always message you once every 60 minutes with your merit count? That surely isn't the best solution. It should message you only when you receive new merits, and only once.


no bot send message only if merits count change Smiley
Code:
if oldmerits != newmerits


for alt account (for scrape forum), i can create it?


edit: tomorrow i try to move update from 60 mins to 10 mins
lulucrypto
Sr. Member
****
Offline Offline

Activity: 711
Merit: 335


You need someone to develop your Web project ?


View Profile WWW
December 12, 2019, 08:25:06 PM
 #14

thank you
guest cant view a list of merits (give and receive, i cant do this

Hmm, how do you do in this case ?

Also, depending on what language you have developed your bot, it is possible to open a session on Bitcointalk with an "ALT" account to get the merits list Wink

For information, you can see a sample session used on Bitcointalk in the source code of my bot developed in Node.JS Wink
- https://github.com/luluwebmaster/bitcointalk-auto-verify-signatures-archive-and-alert/blob/master/app.js#L710

Feel free to reuse the code as you see fit Smiley

Web developer.0x0AB75f882ef60731e02212fFcfBA7C5ce6e0B4F3
TryNinja
Legendary
*
Offline Offline

Activity: 1708
Merit: 3255


Merit & Notifications bot: @BTTSuperNotifier_bot


View Profile WWW
December 12, 2019, 08:29:22 PM
 #15

for alt account (for scrape forum), i can create it?
Alt accounts aren't prohibited. You can have as many accounts as you want. What you can't do is use another account if you have one banned permanently (bannable offense), or if you are cheating bounties/signatures/scamming with multiple accounts (not a bannable offense, but will get you a few negative trusts.)

Even mods have multiple accounts.

tranthidung
Legendary
*
Offline Offline

Activity: 1148
Merit: 2147



View Profile WWW
December 13, 2019, 04:42:30 AM
 #16

edit: tomorrow i try to move update from 60 mins to 10 mins
I appreciated your time to build up that bot but in my opinion, I don't think that bot is good for users.

At least, it has one disadvantage for users: They will be distracted from their merit notification. Consequently, they will probably spend less time to read and improve their understandings on forum rules (unofficial), and good documents (inside and outside the forum).

I imagine the disadvantage as same as what traders (non-professsional) spend all their time in front of computer screen. Furthermore, one or two merits come don't change or ruin your life.  Cheesy





.
.




░██████████████████░
████████████████████
█████████▀░░░███████
█████████░░▄████████
███████▀▀░░▀▀███████
███████▄▄░░▄▄███████
█████████░░█████████

█████████░░█████████

█████████▄▄█████████

████████████████████

░██████████████████░
░██████████████████░
████████████████████
████████████▀▀▀█▀███
███░▀█████▀░░░░░▀███
███▌░░░▀▀▀░░░░░░████
████▄░░░░░░░░░░░████
█████▀░░░░░░░░░█████

██████▄░░░░░▄▄██████

█████▄▄▄▄███████████

████████████████████

░██████████████████░
░██████████████████░
████████████████████
████████████████████
███████████▀▀░░▐████
███████▀▀░░░░░█████
████▀░░░▄█▀░░░▐█████
█████▄▄█▀░░░░░██████

███████▌▄▄▄▐██████

████████████████████

████████████████████

░██████████████████░
Bttzed03
Hero Member
*****
Online Online

Activity: 1288
Merit: 950



View Profile
December 13, 2019, 08:21:21 AM
 #17

~
At least, it has one disadvantage for users: They will be distracted from their merit notification. Consequently, they will probably spend less time to read and improve their understandings on forum rules (unofficial), and good documents (inside and outside the forum).
I get the point of getting somewhat distracted but I think you are exaggerating its effect on users here. It's not like they will be waiting for the bot notification the whole time they are online and do nothing else.

edit:
The bot could be useful also to those who wants to save their nice merit record.

.
.ApeSwap.
The next-gen AMM,
Staking and Farming
Protocol on BSC
           ▄██▄
          ██████
          ██████
          ██████ ▄▄███▄
          █████
███▀ ▀▀█
    ▄█████████████▌    ▀█
   ██▀  ▀█████████▄     ▀█
  ██      █████████▄
 ▄█▀       █████████▄
▀▀          ▀█████████▄
              ▀█████████▄
                ▀█████████▄
                   ▀▀▀▀▀▀██
██████
██
██
██
██
██
██
██
██
██
██
██
██████
Stake now
for over 900% APR!
██████
██
██
██
██
██
██
██
██
██
██
██
██████
babo
Legendary
*
Offline Offline

Activity: 2478
Merit: 2093



View Profile WWW
December 13, 2019, 09:28:55 AM
 #18

Nice job @giammangiato, you bot is usefull for me. I want to track my merits and if you can track single record of merits page is awesome.
Statistics are awesome too (in my humble opinion of course)

Thank you

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
giammangiato
Hero Member
*****
Offline Offline

Activity: 770
Merit: 554


View Profile
December 13, 2019, 10:10:36 AM
 #19

Thank you all for merits, my near goal is 100 Smiley and i hope can reach it.
For the bot, is usefull or not, i dont know. For me and @fillippone is good tool (like @maggiordomo).

Next week i try to create an ALT account for scrape individual merits line.
libert19
Sr. Member
****
Offline Offline

Activity: 1372
Merit: 280


First 100% Liquid Stablecoin Backed by Gold


View Profile WWW
December 13, 2019, 10:34:09 AM
 #20

Good work. Idea for you, can similar be done for bitcointalk mentions, quotes, thread replies as well? I guess it'd be helpful.

Just a suggestion  Cheesy

Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!