<h1>WEED CASH BOT FOR HIVE
<p dir="auto"><code>my_name = @loonatic<br />
Got the Python connection 😎
<p dir="auto"><code>code by @felixxx
<p dir="auto"><code>gif's made by @bubblegif
<p dir="auto">As you may have noticed, we built a comment bot for Hive and it has been operational for some weeks now. We are still working out some kinks and additional features.
<h2>🥦 how it works 🥦
<ul>
<li>bot scans all hive transactions, constantly
<li>if the bot-command (<code>!WEED) is in the <code>body of a comment, the bot checks:
<ul>
<li>if the user has <em>successfuly used the bot in the last 24h
<li>ìf the user has enough WEED CASH tokens staked (420)
<li>if the user isn't op
<li>if all above criteria are matched:
<ul>
<li>the bot votes the op
<li>the bot transfers WEED to op
<li>the bot stores the operation in its persistent DB
<p dir="auto">The original reply gets edited until it reaches 4 users, to avoid spam.
<h2>Further development
<p dir="auto"><span>Right now I (<a href="/@felixxx">@felixxx) am rebuilding the block-stream, to make it more robust. Hive nodes are unreliable and hive-engine nodes even more so.
<p dir="auto">Obviously, the bot can not trigger on every command; this could be easily abused and cause spam.<br />
There are many ways to solve this issue, and if you can put it into plain English, I can probably code it that way.
<p dir="auto">As this is being used by a community, I'd like to ask the community how to go about some questions, but please keep in mind, that we want a non-intrusive bot and not annoy people. Please also consider how there will always be people trying to abuse a service like this and that we have to make sure this is not worth the effort:
<h4>Should the bot trigger only on main posts?
<p dir="auto">...or should the bot also trigger on replies? (as it does now)<br />
If so: how deep?<br />
Should replies be treated differently than main posts?
<h4>Should the bot only be useable every 24h?
<p dir="auto">It could work on a precharge basis, where users can charge the bot with WEED.<br />
It could also be any number of hours.<br />
Or a mix of both?
<h4>Are there any other features you would like to see?
<p dir="auto">I can give the bot a discord functionality, so it can do jobs on Discord, too.<br />
Registration, charging, triggering... again:
<blockquote>
<p dir="auto">if you can put it into plain English, I can probably code it that way.
<p dir="auto">If I like the feature and it is easy to build, I can add it to the bot.<br />
If it gets complicated or is something I don't enjoy building, you can always pay me 💵.
<h2>Final notes
<p dir="auto"><span>I (<a href="/@felixxx">@felixxx) am building this in my spare time and for free.
<p dir="auto">If you want access to the code or if you want a custom built bot for your community, contact me here or better on Discord.
Great job on the bot, I am think it's best on the main post only and not so much on replies. This will allow less spam IMO
That is right.
At the same time, I would like good comments to be rewarded, too.
Sometimes a reply deserves more votes than the op, I think.
I prefer to keep it in it. the more joints for everyone the more fun you can always do the stop command
Awesome!!!! I want more I came here to vote!
Thats fiyah 🔥
This is some pretty great news, it brings a little more utility to weedcash. I love to see it.
!hiqvote
!WEED
good luck furthermore
@weed.dispenser!
If you do not want to receive these comments, please reply with !STOP@hiq.redaktion passed you the virtual joint!
Congratulations @weed.dispenser! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@weed.dispenser/upvoted.png?202211291715" /><td>You received more than 300 upvotes.<br />Your next target is to reach 400 upvotes. <p dir="auto"><sub><em>You can view your badges on <a href="https://hivebuzz.me/@weed.dispenser" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">your board and compare yourself to others in the <a href="https://hivebuzz.me/ranking" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Ranking<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong><span>Check out the last post from <a href="/@hivebuzz">@hivebuzz: <table><tr><td><a href="/hive-102201/@hivebuzz/wc2022-recap-day9"><img src="https://images.hive.blog/64x128/https://i.imgur.com/uNPMgnd.png" /><td><a href="/hive-102201/@hivebuzz/wc2022-recap-day9">HiveBuzz World Cup Contest - Recap of Day 9<tr><td><a href="/hive-122221/@hivebuzz/pud-202212"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg" /><td><a href="/hive-122221/@hivebuzz/pud-202212">Hive Power Up Day - December 1st 2022<tr><td><a href="/hive-102201/@hivebuzz/wc2022-ranking"><img src="https://images.hive.blog/64x128/https://i.imgur.com/8kplXrX.png" /><td><a href="/hive-102201/@hivebuzz/wc2022-ranking">HiveBuzz World Cup Contest - Check your ranking <h6>Support the HiveBuzz project. <a href="https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for <a href="https://peakd.com/me/proposals/199" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">our proposal!@hiq.redaktion, the HiQ Smart Bot has recognized your request (1/3) and will start the voting trail.
In addition, @weed.dispenser gets !PIZZA from @hiq.redaktion.
Discord. And don't forget to vote HiQs fucking Witness! 😻For further questions, check out https://hiq-hive.com or join our
This is amazing man congratulations on building an awesome bot
!ALIVE
You Are Alive so I just staked 0.1 $ALIVE(4/10)@weed.dispenser! to your account on behalf of @caelum1infernum.
The tip has been paid for by the We Are Alive Tribe
through the earnings on @alive.chat, feel free to swing by our daily chat any time you want.
I am using it and it is working perfectly 😀
Thank you very much 😊