Introducing Punk Badges

avatar
(Edited)

mjTieKyebiLZMR74TZ8MSA_r.jpg

You may have noticed the Hive Punks Connoisseur badge.

image.png

This was introduced a while ago but was never fully automated. I put aside some time tonight to do just that, and get it online. As of right now, the badge is fully automated.

If you have more than 5 Hive Punks in your possession, you will automatically get this badge within an hour or so. If you put your Punks on the market and you have left than 5 Punks in your possession, you will lose the badge within a similar timeframe.

Every hour the bot will pull all 10,000 Hive Punks and assign badges to anyone who has more than 5 Punks and do not already have the badge. It will also remove the badge from anyone who has the badge but no longer has at least 5 Hive Punks.

As of the time of this post, 222 unique users have more than 5 Hive Punks.

How to get a badge for your project

I maintain a few badge bots for a few projects, not all of them are mine. While the process is pretty straight forward, each project usually has their own requirements of what qualifies a user for a badge.

The first step to get a badge is to request it from the @peakd team. You will need to have a badge-###### already made up along with an avatar and strict criteria what qualifies you for the badge. This criteria must be in the bio of the account handling the badge. You can get in touch with them via their Discord, there is a dedicated channel for badge requests.

Once approved, you need to make a bot that has the badge account follow and unfollow people based on your criteria. You can have this bot run hourly like mine does or daily, it really isn't that critical and highly depends on the amount of work involved to analyze who should own the badge.

Many badges are one-time achievements, and do not require analyzing if a badge should be removed, this makes the process a little easier.

Once you do that, you just need to put the code up on a server and schedule it to run on a regular basis (i.e. cron).

You will need 5-20 HP on the account to handle RC demands, depending on how frequently things change. Your initial update will likely drain your RC faster than normal, then it should stabilize.

20220105_155134.gif
Thanks @doze!

Posted Using LeoFinance Beta



0
0
0.000
18 comments
avatar

That badge would be visible on Hive frontend as well?

0
0
0.000
avatar

@peakd did a good job making badges agnostic and can be used by any front end. At this time, only PeakD supports badges as far as I know. You can see them on the profile page of any user.

image.png

I'll make an inquiry about getting them supported on Hive.blog

0
0
0.000
avatar

Imagine using hive.blog rather than PeakD.. lol.

0
0
0.000
avatar

Now I understand how these badges appear at once on the profile. I wonder if it is only peakd that provides the option or other frontends aldo show these badges.

0
0
0.000
avatar

@newsflash ... Whats your problem?? I've never seen you comment on any of the posts that you downvote down to zero.. that'd be cool If we'd have an opportunity to understand your opinion, and why you think people deserve this treatment from you.

0
0
0.000
avatar

He is just being the shitty person he is, he's mad I downvoted automated posts of an image he was upvoting 10 times a day. Now he is nuking all my posts and my upvotes.

0
0
0.000
avatar

Imagine if you were the kinda guy who upvoted his own content.. you could probably give him a run for his money haha

0
0
0.000
avatar

I could drop another ~$75 rewards on my posts if I voted them, but I am not dependent on post rewards. He's just a salty bitch.

0
0
0.000
avatar

Hopefully he dosnt find my upvote :)

0
0
0.000
avatar

Save your upvotes for someone who needs it more. It just ends up getting wiped out anyway.

Appreciate it though.

0
0
0.000
avatar

I realise I have a new badger and manage to arrive here after searching. Really thanks for the beautiful delight.

0
0
0.000
avatar

Congratulations on your new badge. It is always nice to be recognized. Thanks for sharing.

0
0
0.000