Fortune Cookie HIVE

Who doesn't like fortune cookies? This post is in fact linked to a small application in node-js At any upvote, it will send a comment to this post - with your name mentioned- some wise words as from a fortune cookie.
It streams the HIVE chain in a server, checks for the votes on this post and mentiones you with some small nice words. I made it opensource, so anybody interested can check the code at : https://github.com/firedreamgames/hive_cookie
Cookies for upvotes :)
Stay Positive
FD ps: thanks to @deathwing for unstucking me in discord!
Edit:
Learning while doing - it seems I have to solve the below kink.
RPCError: Assert Exception:( _now - auth.last_post ) >= HIVE_MIN_REPLY_INTERVAL_HF20: You may only comment once every 3 seconds.
Kink #2: When the server crash, the streamer stops and fails to send the cookies for upvotes.
Solution :
- At start check all the voters
- Check all the replies to the post and extract mentioned names
- Compare list and send the cookie to the names that voted but didn't get a reply.
Not too difficult, I am on it!
Edit#2:
Messed up a bit but solved it :) Now it is working fine.
Dear @firedream
Thank you for your %100 upvote
Here is your fortune cookie below
Sometimes traveling to new places leads to great transformation.
Dear @spectrumecons
Thank you for your %15 upvote
Here is your fortune cookie below
An inch of time is an inch of gold.
Dear @captainhive
Thank you for your %15 upvote
Here is your fortune cookie below
Everybody is ignorant -- only on different subjects.
Dear @vegoutt-travel
Thank you for your %15 upvote
Here is your fortune cookie below
Bloom where you are planted.
Dear @tipy
Thank you for your %100 upvote
Here is your fortune cookie below
Something's rotten in the state of Denmark. -- Shakespeare
Dear @pishio
Thank you for your %16.9 upvote
Here is your fortune cookie below
Let him choose out of my files, his projects to accomplish. -- Shakespeare, "Coriolanus"
Dear @akhyar23
Thank you for your %100 upvote
Here is your fortune cookie below
Be different: conform.
Dear @cvrle
Thank you for your %100 upvote
Here is your fortune cookie below
It's a great weekend to watch a movie.
Dear @holdonla
Thank you for your %100 upvote
Here is your fortune cookie below
Clear your mental, emotional, and physical space and you will see.
Dear @mukna996
Thank you for your %100 upvote
Here is your fortune cookie below
You will gain admiration from your peers.
Dear @trollvictor
Thank you for your %100 upvote
Here is your fortune cookie below
There is a true and sincere friendship between you and your friends.
Dear @fw206
Thank you for your %9.6 upvote
Here is your fortune cookie below
It could be better, but it's good enough.
Dear @kaywoods
Thank you for your %4 upvote
Here is your fortune cookie below
You have the power to write your own fortune.
Dear @magnauseum
Thank you for your %29 upvote
Here is your fortune cookie below
Action speaks nothing, without the motive.
Wisdom. 🙏💯
thank you @magnauseum
Dear @mrhuman88
Thank you for your %50 upvote
Here is your fortune cookie below
In the arena of human life, the honors and rewards fall to those who show their good qualities in action.
It,s very cool
thank you @trollvictor :) solving the problems on the way.
Dear @gigihii03
Thank you for your %100 upvote
Here is your fortune cookie below
Respect yourself and others will respect you.
Dear @investegg
Thank you for your %1330230045.99 upvote
Here is your fortune cookie below
Q: Why haven't you graduated yet? A: Well, Dad, I could have finished years ago, but I wanted my dissertation to rhyme.
Dear @corporateay
Thank you for your %7841517.84 upvote
Here is your fortune cookie below
AWAKE! FEAR! FIRE! FOES! AWAKE! FEAR! FIRE! FOES! AWAKE! AWAKE! -- J. R. R. Tolkien
Dear @rsntpl
Thank you for your %6865903.99 upvote
Here is your fortune cookie below
A personal relationship will become more fulfilling.
Dear @r351574nc3
Thank you for your %91646412.97 upvote
Here is your fortune cookie below
Future looks spotty. You will spill soup in late evening.
Dear @thedailysneak
Thank you for your %37688042.08 upvote
Here is your fortune cookie below
Good day to deal with people in high places; particularly lonely stewardesses.
봇에 버그가 있는 것 같습니다.
나는 그것을 고쳤다 :)
This happens when you get "voter,result[i].weight" instead of "voter,result[i].percent".
Good to hear from you!
ha ha :) That seems to be me!
Dear @onealfa
Thank you for your %100 upvote
Here is your fortune cookie below
"Life, loathe it or ignore it, you can't like it." -- Marvin, "Hitchhiker's Guide to the Galaxy"
Dear @eturnerx
Thank you for your %6.8 upvote
Here is your fortune cookie below
People find it difficult to resist your persuasive manner.
Dear @sneakyninja
Thank you for your %5.06 upvote
Here is your fortune cookie below
You will soon meet a person who will play an important role in your life.
Dear @salty-mcgriddles
Thank you for your %15 upvote
Here is your fortune cookie below
Better to face danger than be always in fear.
Dear @exifr
Thank you for your %15 upvote
Here is your fortune cookie below
The new moon will bring pleasant surprises.
Dear @exifr0
Thank you for your %15 upvote
Here is your fortune cookie below
Your domestic life may be harmonious.
Dear @malihasrk
Thank you for your %50 upvote
Here is your fortune cookie below
You believe in the goodness of mankind.
Dear @sbi-tokens
Thank you for your %10.13 upvote
Here is your fortune cookie below
An inch of time is an inch of gold.
Dear @cmmemes
Thank you for your %100 upvote
Here is your fortune cookie below
Someone you care about seeks reconciliation.
Dear @itsostylish
Thank you for your %100 upvote
Here is your fortune cookie below
Emulate what you respect in your friends.
Dear @naingtun45
Thank you for your %100 upvote
Here is your fortune cookie below
Fortune smiles upon you today.
Dear @allfabeta
Thank you for your %100 upvote
Here is your fortune cookie below
Clear your mental, emotional, and physical space and you will see.
Dear @sbi4
Thank you for your %69.34 upvote
Here is your fortune cookie below
You have a quiet and unobtrusive nature.
Dear @ravensavage
Thank you for your %10.13 upvote
Here is your fortune cookie below
There will be big changes for you but you will be happy.
Dear @concheror
Thank you for your %100 upvote
Here is your fortune cookie below
If you look in the right places, you can find some good offerings.
Can you point the right place with a link maybe?
ah, this is for the next upvote ;)