eLvErDe / yiimp-blocks-found-to-discord

Poll a Yiim pool block found result page and post a message to Discord chat room
BSD 3-Clause "New" or "Revised" License
1 stars 17 forks source link

Suggestion also #6

Open mtompkins opened 6 years ago

mtompkins commented 6 years ago

So one person had an idea I thought I'd share - the bot works great but does become a bit spammy on an active pool. Would it be possible to link a symbol to a webhook - that way you could allocate an area on Discord per coin.

Something like:

XVG Webhook1 RVN Webhook2

eLvErDe commented 6 years ago

I could also flush found blocks per coin and per time limit

mtompkins commented 6 years ago

Meaning get rid of history in a given channel by hook? .. If so I'd love it, like limiting to the last 10 blocks or such. Great thought.

eLvErDe commented 6 years ago

Regarding your first answer, I think it's already doable actually. As the coin in requested by passing ?algo=all you could run several instance of the script binded on different hooks and using ?algo=xvg or ?algo=rvn

mtompkins commented 6 years ago

Hmm interesting, although if the pool is large I'm not in love with one systemd per coin. That becomes unwieldy, but I understand.

eLvErDe commented 6 years ago

Well, it's a Python script using asyncio. It does NOT use any resource basically so it's clearly intended to be run multiple times if you want.