Steemflagrewards discord bot - Code rewrite and many new features

2년 전


What is 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.
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 this one and they have set the flaggers as beneficiaries with adjustive weight dependent on the number of mentions approved.

New Features

Actually I nearly completely rewrote the script with new features and many other smaller things. The following are the major changes I did.

1. Persistent data storage and 100% beem

The first version of the script by @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 beem, it's superior small brother, who is slowly outgrowing steem-python.
Relevant commit

2. ?status command

I added a command that shows the current status of the @steemflagrewards bot. The important (non joke) values in the message are the following:

  • Flaggers - the number of distinct flaggers with approved mentions not yet included in a post
  • Mentions - the number of mentions approved but not yet included in a post
  • Removed payouts in the last 7 days - title is descriptive enough. In STU.
  • Steem Power - the effective Steem Power of @steemflagrewards
  • Voting Power - the VP of @steemflagrewards
  • Vote Value - the value of a 100% by @steemflagrewards at the current VP
  • Reputation - the reputation of @steemflagrewards.
  • Latest Post - the latest post by @steemflagrewards.

A status message looks like this:

Relevant commit

3. ?sdl command

Lately there have been a lot 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. @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 ?sdl command. It has a small set of subcommands for it's usage:

  • add: For adding new accounts to the list. Usage: ?sdl add {any number of accounts seperated by whitespaces}
  • remove: For removing accounts from the list, if they have been added even though not being part of the sdl. Usage: same as add
  • 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: ?sdl list *steemit|steemd *delegated|undelegated

    listings look similar to this message
  • update: Updates information for accounts who got their delegations removed by STINC. Usage: ?sdl update
  • file: Returns a .txt file with appropriate contents and naming for making a pull request to the irredeemables list( Usage: ?sdl file
    It can only be edited by a small set of users. Listing can be done by anyone.

Relevant commit 1
Relevant commit 2

4. Follow on flags

In order to prevent too many unnecessary comments, I made the follow on flag feature. If another @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.
Relevant commit
Example follow on flag + comment

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)
Another notice: due to some git hiccups, the pull request stuff got somewhat messed up, so I recommend to just look at the commit history

Short term todo list
  • and PyPi listing for easier usage
  • Queuing up any votes if the VP of the @steemflagrewards account is low
  • Update with up-to-date information and more detailed use instructions

GitHub Account


Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  trending
  ·  2년 전

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.

Need help? Write a ticket on
Chat with us on Discord.

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

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?

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

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?

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

Want to chat? Join us on Discord

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.

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 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.

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 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...

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

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

Promotion with Instant ROI. For Awesome Bloggers!


You just got a boost courtesy of @anthonyadavisii, via and @sneaky-ninja @jerrybanfield. I am the All-In-One, Upvoting and Anonymous Flagging BidBot.

Top Profitability

I'm able to calculate and proxy the most profitable bids for the best bidbots out there, so you don't have to! Place your bids via

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