Steemflagrewards discord bot - Code rewrite and many new features

in #utopian-io6 years ago (edited)

Repository

<p dir="auto"><span><a href="https://github.com/anthonyadavisii/steemflagrewards" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/anthonyadavisii/steemflagrewards <p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmTJj2SXdXcYLh3gtsziSEUXH6WP43UG6Ltoq9EZyWjQeb/frpaccount.jpg" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmTJj2SXdXcYLh3gtsziSEUXH6WP43UG6Ltoq9EZyWjQeb/frpaccount.jpg 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmTJj2SXdXcYLh3gtsziSEUXH6WP43UG6Ltoq9EZyWjQeb/frpaccount.jpg 2x" /> <h2>What is steemflagrewards <p dir="auto"><br /> For the approval of these comment we have a discord bot which automatically upvotes and sometimes comments these comments. There also is a post that triggers once 9 distinct flaggers have got a mention approved. These posts look very similar to <a href="https://steemit.com/steemflagrewards/@steemflagrewards/steem-flag-rewards-report---8-flagger-post---2018-08-05-2248" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">this one and they have set the flaggers as beneficiaries with adjustive weight dependent on the number of mentions approved.<span><a href="/@steemflagrewards">@steemflagrewards is an initiative on the steem blockchain trying to make more users of the blockchain actually flag abuse themselves. We are doing this by upvoting the comments these users leave under the flagged post or comment. <h3>New Features <p dir="auto">Actually I nearly completely rewrote the script with new features and many other smaller things. The following are the major changes I did. <h5>1. Persistent data storage and 100% beem <p dir="auto"><a href="https://github.com/holgern/beem" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">beem, it's superior small brother, who is slowly outgrowing steem-python.<br /> <a href="https://github.com/anthonyadavisii/steemflagrewards/commit/2855c46d0059dd6b8b1f11d83cca5d7d666c63ef" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Relevant commit<span>The first version of the script by <a href="/@anthonyadavisii">@anthonyadavisii always stored the things that would be used later, such as the several mentions and their authors for the beneficiary posts, in variables. This was problematic, because if the script crashed for whatever reason (such as the hosting PC to be restarted) all the variables would be lost. I fixed that problem by storing all the stuff that needs to be stored for a longer time in a local SQLite database. Another big stability change was the complete transition from steem-python to <h5>2. <code>?status command <p dir="auto"><span>I added a command that shows the current status of the <a href="/@steemflagrewards">@steemflagrewards bot. The important (non joke) values in the message are the following: <ul> <li><strong>Flaggers - the number of distinct flaggers with approved mentions not yet included in a post <li><strong>Mentions - the number of mentions approved but not yet included in a post <li><strong>Removed payouts in the last 7 days - title is descriptive enough. In STU. <li><strong>Steem Power<span> - the effective Steem Power of <a href="/@steemflagrewards">@steemflagrewards <li><strong>Voting Power<span> - the VP of <a href="/@steemflagrewards">@steemflagrewards <li><strong>Vote Value<span> - the value of a 100% by <a href="/@steemflagrewards">@steemflagrewards at the current VP <li><strong>Reputation<span> - the reputation of <a href="/@steemflagrewards">@steemflagrewards. <li><strong>Latest Post<span> - the latest post by <a href="/@steemflagrewards">@steemflagrewards. <p dir="auto">A status message looks like this:<br /> <img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmPp6QcrJj3Ye6D3m9igdgbwVEY1dgSvtfZKA2y8DQg1k2/image.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmPp6QcrJj3Ye6D3m9igdgbwVEY1dgSvtfZKA2y8DQg1k2/image.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmPp6QcrJj3Ye6D3m9igdgbwVEY1dgSvtfZKA2y8DQg1k2/image.png 2x" /><br /> <a href="https://github.com/anthonyadavisii/steemflagrewards/commit/6bbeb7ab25095915ebb3e6109842427144a8c11b" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Relevant commit <h5>3. <code>?sdl command <p dir="auto">Lately there have been a <em>lot<code>?sdl command. It has a small set of subcommands for it's usage:<span> of newly created accounts flagging other users seemingly random. We do believe it's only one person who own these accounts, and he calls himself the steemit defence league. <a href="/@iamstan">@iamstan and some others from the steemflagrewards team have started to maintain a list of all the accounts involved. In order to make this list easier and more comfortable to maintain, I created the <ul> <li><code>add: For adding new accounts to the list. Usage: <code>?sdl add {any number of accounts seperated by whitespaces} <li><code>remove: For removing accounts from the list, if they have been added even though not being part of the sdl. Usage: same as add <li><code>list: Lists all accounts currently on the list. If they are requested with either steemd or steemit links, they will get sent in embed messages because normal messages don't support hyperlinks. If included in command, it can also only send the accounts with, or without a delegation. Usage: <code>?sdl list *steemit|steemd *delegated|undelegated<br /> <img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQme7LgXgo17TymnWKJsA3iatSPG3jm3uhQumDmQatt9HSn/image.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQme7LgXgo17TymnWKJsA3iatSPG3jm3uhQumDmQatt9HSn/image.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQme7LgXgo17TymnWKJsA3iatSPG3jm3uhQumDmQatt9HSn/image.png 2x" /><br /> <em>listings look similar to this message <li><code>update: Updates information for accounts who got their delegations removed by STINC. Usage: <code>?sdl update <li><code>file<code>?sdl file<br /> It can only be edited by a small set of users. Listing can be done by anyone.<span>: Returns a .txt file with appropriate contents and naming for making a pull request to the irredeemables list(<a href="https://github.com/steemit/redeemer-irredeemables" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/steemit/redeemer-irredeemables) Usage: <p dir="auto"><a href="https://github.com/anthonyadavisii/steemflagrewards/commit/8671a30e96829fb3e563b2d15a49576ed863d254" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Relevant commit 1<br /> <a href="https://github.com/anthonyadavisii/steemflagrewards/commit/8ab6a1343abbf08fe17e9a5082074741fe74e972" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Relevant commit 2 <h5>4. Follow on flags <p dir="auto"><br /> <a href="https://github.com/anthonyadavisii/steemflagrewards/commit/0318dc9e8901bdd629cb17522a260e70c4445545" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Relevant commit<br /> <a href="https://steemit.com/food/@sarah.taylor/food-photography#@deliberator/re-steemflagrewards-re-re-sarahtaylor-food-photography-20180806t145829z-20180806t152405506z" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Example follow on flag + comment<span>In order to prevent too many unnecessary comments, I made the follow on flag feature. If another <a href="/@steemflagrewards">@steemflagrewards abuse hunter already flagged a post, and the abuse fighter who wants to remove even more rewards from the flagged post, you can now use the follow on flags. In order to use this, just comment on the steemflagrewards comment under the first abuse fighters comment with the abuse category in it. Then the bot will not create another comment. <p dir="auto"><sup>Small notice: some of these changes are a lot older than 14 days, but I hope they get considered for the review anyways, since I've been on vacation, and couldn't make the bot "script ready" earlier (amos said it wouldn't be that bad with that guideline)<br />Another notice: due to some git hiccups, the pull request stuff got somewhat messed up, so I recommend to just look at the <a href="https://github.com/anthonyadavisii/steemflagrewards/commits/master" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">commit history <h5>Short term todo list <ul> <li><code>setup.py and PyPi listing for easier usage <li><span>Queuing up any votes if the VP of the <a href="/@steemflagrewards">@steemflagrewards account is low <li>Update <code>README.md with up-to-date information and more detailed use instructions <h4>GitHub Account <p dir="auto"><a href="https://github.com/flugschwein" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Flugschwein
Sort:  

Gute Aktion, seh aber das gleiche Problem, wie bei steemcleaners, diese wichtige Arbeit wird zu wenig rewarded und damit geht die Motivation gegen 0

Wir geben uns genau deshalb Mühe diese Arbeit zu rewarden ;)

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.



Chat with us on Discord.
[utopian-moderator]Need help? Write a ticket on https://support.utopian.io/.


You are an example of excellence for all to follow.Thanks @flugschwein for all the hard work you do on stemmit.


Yo do great work helping others on @steemcleaners and at @steemflagrewards thanks for your help very much. I would like to add that after I build the list of SDL accounts I place them in a hackmd.oi file @themarkymark created then he presently moves them to the irredeemables list on github.

Will there be a way to move the list along with the bot commands?


Sie sind ein Beispiel für Exzellenz, dem alle folgen können.Danke @flugschwein für all die harte Arbeit an stemmit.


Ihr leistet großartige Arbeit, indem ihr anderen bei @steemcleaners und bei @steemflagrewards für eure Hilfe sehr dankbar seid. Ich möchte hinzufügen, dass, nachdem ich die Liste der SDL-Konten erstellt habe, ich sie in eine hackmd.oi-Datei @themarkymark einfüge, die er dann zur Zeit in die Liste der nicht einlösbaren Konten auf github verschiebt.

Wird es eine Möglichkeit geben, die Liste zusammen mit den Bot-Befehlen zu verschieben?


Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!Hey @flugschwein

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Didnt know about beem! thanks! i wanted to implement some features that steem-python wass missing myself and now found them there.

Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.Congratulations! This post has been upvoted from the communal account, @minnowsupport, by anthonyadavisii from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

sneaky-ninja-sword-xs.jpg
Sneaky Ninja Attack! You have just been defended with a 13.53% upvote!
I was summoned by @bidbot.credits. I have done their bidding and now I will vanish...

woosh
A portion of the proceeds from your bid was used in support of youarehope and tarc.

Abuse Policy
Rules
How to use Sneaky Ninja
How it works
Victim of grumpycat?

Loading...

finde es echt super, was du machst! Ich muss mich in das ganze mal etwas mehr einlesen, klingt auf jedenfall spannend! :)