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.
It,s very cool
thank you @trollvictor :) solving the problems on the way.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @allfabeta
Clear your mental, emotional, and physical space and you will see.
Thank you for your %50 upvote
Here is your fortune cookie belowDear @malihasrk
You believe in the goodness of mankind.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @concheror
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 ;)
Thank you for your %100 upvote
Here is your fortune cookie belowDear @firedream
Sometimes traveling to new places leads to great transformation.
Thank you for your %15 upvote
Here is your fortune cookie belowDear @spectrumecons
An inch of time is an inch of gold.
Thank you for your %15 upvote
Here is your fortune cookie belowDear @captainhive
Everybody is ignorant -- only on different subjects.
Thank you for your %15 upvote
Here is your fortune cookie belowDear @vegoutt-travel
Bloom where you are planted.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @tipy
Something's rotten in the state of Denmark. -- Shakespeare
Thank you for your %16.9 upvote
Here is your fortune cookie belowDear @pishio
Let him choose out of my files, his projects to accomplish. -- Shakespeare, "Coriolanus"
Thank you for your %100 upvote
Here is your fortune cookie belowDear @akhyar23
Be different: conform.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @cvrle
It's a great weekend to watch a movie.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @holdonla
Clear your mental, emotional, and physical space and you will see.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @mukna996
You will gain admiration from your peers.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @trollvictor
There is a true and sincere friendship between you and your friends.
Thank you for your %9.6 upvote
Here is your fortune cookie belowDear @fw206
It could be better, but it's good enough.
Thank you for your %4 upvote
Here is your fortune cookie belowDear @kaywoods
You have the power to write your own fortune.
Thank you for your %29 upvote
Here is your fortune cookie belowDear @magnauseum
Action speaks nothing, without the motive.
Wisdom. 🙏💯
thank you @magnauseum
Thank you for your %50 upvote
Here is your fortune cookie belowDear @mrhuman88
In the arena of human life, the honors and rewards fall to those who show their good qualities in action.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @gigihii03
Respect yourself and others will respect you.
Thank you for your %1330230045.99 upvote
Here is your fortune cookie belowDear @investegg
Q: Why haven't you graduated yet? A: Well, Dad, I could have finished years ago, but I wanted my dissertation to rhyme.
Thank you for your %7841517.84 upvote
Here is your fortune cookie belowDear @corporateay
AWAKE! FEAR! FIRE! FOES! AWAKE! FEAR! FIRE! FOES! AWAKE! AWAKE! -- J. R. R. Tolkien
Thank you for your %6865903.99 upvote
Here is your fortune cookie belowDear @rsntpl
A personal relationship will become more fulfilling.
Thank you for your %91646412.97 upvote
Here is your fortune cookie belowDear @r351574nc3
Future looks spotty. You will spill soup in late evening.
Thank you for your %37688042.08 upvote
Here is your fortune cookie belowDear @thedailysneak
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!
Thank you for your %100 upvote
Here is your fortune cookie belowDear @onealfa
"Life, loathe it or ignore it, you can't like it." -- Marvin, "Hitchhiker's Guide to the Galaxy"
Thank you for your %6.8 upvote
Here is your fortune cookie belowDear @eturnerx
People find it difficult to resist your persuasive manner.
Thank you for your %5.06 upvote
Here is your fortune cookie belowDear @sneakyninja
You will soon meet a person who will play an important role in your life.
Thank you for your %15 upvote
Here is your fortune cookie belowDear @salty-mcgriddles
Better to face danger than be always in fear.
Thank you for your %15 upvote
Here is your fortune cookie belowDear @exifr
The new moon will bring pleasant surprises.
Thank you for your %15 upvote
Here is your fortune cookie belowDear @exifr0
Your domestic life may be harmonious.
Thank you for your %10.13 upvote
Here is your fortune cookie belowDear @sbi-tokens
An inch of time is an inch of gold.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @cmmemes
Someone you care about seeks reconciliation.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @itsostylish
Emulate what you respect in your friends.
Thank you for your %100 upvote
Here is your fortune cookie belowDear @naingtun45
Fortune smiles upon you today.
Thank you for your %69.34 upvote
Here is your fortune cookie belowDear @sbi4
You have a quiet and unobtrusive nature.
Thank you for your %10.13 upvote
Here is your fortune cookie belowDear @ravensavage
There will be big changes for you but you will be happy.