Steemversary - Bot report page + Steemconnect + Delegation Badges
Steemversary is a website and bot that tracks who’s steemversay it is on any given day. What’s a Steemversay? it’s a year since you made your steem account. I made the site and bot last week, here are my first updates.
What’s new
There are three main updates along with a bunch of tweaks and changes.
Added a bot feed to the website
Using SteemSql I created a page that tracks what the bot is doing. You could always go over to steemd but I wanted to create the same thing on the site for visitors. I think a feed is important for transparency, so you can easily check what the bot is actually doing.
The Feed displays all votes/comments in reverse chronological order. I’m making queries to steem sql like this.
let botVotes = "SELECT 'vote' as 'action', timestamp, author, permlink, weight FROM TxVotes WHERE
voter = 'steemversary' ORDER BY CONVERT(DATE, timestamp) DESC "
function querySteemSql(sqlQuery){
return new Promise((resolve, reject) => {
$.post('https://sql.steemhelpers.com/api', {
query : sqlQuery
}, (res) => resolve(res.rows));
});
}
Steemconnect powered SteemPower delegation
I wanted to add the ability for steem power delegations on site. Steemconnect is a great platform that allows users to perform actions with token based auth and not have to trust the third party with their credentials. I thought it would be more difficult that it was to be honest.
You can find the current value for ‘steem power per Million vests’ on steemd I’m not sure how often it changes, perhaps that value should be an api call. Once you have the value for vests you can construct a steemconnect url for the user. I kept it simile with three buttons but there is no reason why you couldn’t have an input or select box instead. Users can now easily delegate to the bot securely. 🙌 🙌
let username = $('.username').val().trim()
let spPerMil = 488.19
let oneSpInVests = (1000000/spPerMil)
let vests = ($(e.currentTarget).data('sp') * oneSpInVests).toFixed(3)
let steemconnectUrl = `https://v2.steemconnect.com/sign/delegateVestingShares?delegator=${username}&delegatee=steemversary&vesting_shares=${vests}000%20VESTS`
Badges
I’ve been wanting to add more interesting information to the user profiles. So far there has been a high majority of the same user winning all the badges/achievements for any given day. It makes sense because account value/followers/posts/reputation all increase together. I might need to think creatively what else can be included. I have created badges for ‘Most followers’, ‘Most Steem power’, ‘Most posts’ etc.
other updates
- revamped the hero area section 🚀
- upped the grid to a 5 column layout ⚡️
Fixes
- the default steem api in the CDN hosted version of steem-js is no longer available as of 6th January.
I still have more ideas for steemversary. It’s starting to feel a bit more legitimate. I’m waiting on blocktrades to release their steempower delegation service to try and boost this bot and make more of a difference. I think it needs a web address too.
if you have any ideas or want to work on the bot let me know or feel free to submit PR’s
✅➡️ SITE // Github Pull Request 💪 - Steem-versary -> Main project
✅➡️ BOT // Github Pull Request 2 💪 - Steem-versary-bot ->A couple extra updates here
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Awesome! Thanks for reviewing this project. 👊
Hey @sambillingham I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Thanks Utopian 🤖 & Team 👨👩👦👦
I think this is a great improvement @sambillingham sincerely, a job well done, the bot features kind of makes thing easier and more user friendly, at first when i joined the steem community, it was difficult getting the hang of the whole platform.
The Badges seem like a pretty great idea, i am loving the improvement, i hope to see more of these in the future.