If someone has a better solution for the bot, let me know. I'll use theirs.
Haha, I thought you've patched bitcoin-core and monitor blockchain itself. But you just rely on some public api. Are you sure it will show you pubkey without lag?
Maybe I did. I won't spoil everything.