SBD Distributor

in #utopian-io7 years ago (edited)

I present the SBD Distributor project, which is designed to distribute a portion of SBD to users who voted for your post.
Those. After you receive a reward for the post, you can return some of the reward to the voted users.
Thus, you can benefit users and subscribers for your attention.

giveaway2ф.jpg

Current Feature

  • Software supports multi-lingual
  • Automatic calculation of the amount of SBD depending on the contribution that the user who voted for your post brought to you.
  • Automatic sending of the calculated amounts of SBD to users who voted for your post.
  • Use the "stop list" to cancel sending SBD to users who enter it.
  • If you use a specific setting, send SBD to users who not only voted for your post, but also are your followers.
  • Limitation in calculating the minimum amount received as a result of voting for your post by the user.
  • Depending on the setting, a certain percentage is taken.
  • Automatic generation of memo when sending SBD hours with the url of the link to the post.
  • Saving the user's active key in encrypted form. Since the local application is afraid to compromise the key is not necessary.

Installation

There are two ways to install the application:

  1. Download the archive from the repository with all necessary binary files and configurations for the required operating system. Repository.
  2. Download the sources and compile it under your system by yourself.

Compilation

Download and install the programming language GO from the site https://golang.org/dl/

In a separate folder, create the directories bin, pkg, src. Go to the src folder and recruit the repository with the command

git clone git://github.com/asuleymanov/sbdd.git

Install all necessary packages for the assembly with the command

go get -u github.com/asuleymanov/rpc
go get -u github.com/asuleymanov/jsonrpc2
go get -u github.com/btcsuite/btcd
go get -u github.com/btcsuite/btcutil
go get -u github.com/pkg/errors
go get -u github.com/olekukonko/tablewriter

Compile the sbdd.go package with the

go build sbdd.go

Setting up and using.

Language selection

You need to rename the language file you need with language.json_ * to the language.json file

Changing the configuration

Change the necessary settings in the sbdd.conf configuration file

"chain_url":        ["wss://steemd.steemit.com","https://api.steemit.com","wss://gtg.steem.house:8090"] - addresses of servers providing API STEEM (it is better not to change)
"username":         "" - insert the user name on the system on behalf of which the SBD will be sent
"percent":          80 - % which will be used to calculate the amount sent
"memo_str":         "", - A message in the MEMO field for each item. At the end of the message, a URL link to the article will be added.
"site_link_url":    "steemit.com", - the name of the site that will participate in the generation of URL links to the article (it is better not to change)
"min_up_value":     0.000000001, - The minimum amount that will be taken into account in the calculation. But at the same time sending will be 0.001
"followers":        false, - use the list of followers when sending
"stop_list":       [] - stop_list who will not be sent to SBD in any way

After configuring and saving the configuration, you must run the compiled binary file.

Working with the app

  1. When you first start the software, it will ask you for the user's private active key and check it.
    In the event that the check is successful, the software will ask you to enter the password twice to encrypt the key. And in case of successful input of the software it will save it in a file key.dat
    On subsequent logons, the software will not prompt for the private key being entered. And will only ask for a password to decrypt it.

  2. Next, the software will prompt to enter the URL link to the article for which you want to send SBD.
    And it provided that the article received an award will calculate and display a table of all the data and voted the sum due to them in SBD.
    Otherwise, the software will report that the award for the article has not yet been received.

  3. After calculating the software, it will automatically check if you have the amount necessary for payment in your account.
    And depending on this, either informs you that the payment is not enough, or will offer to send SBD.

  4. When sending the software, it automatically writes all the data to the log file of the form Transfer_Log_ [permlink articles] .log.
    In the event of a sending failure, the software automatically enters an erroneous transaction in the file send.dat. And at the subsequent startup the software will offer to send only erroneous transactions anew.
    After the distribution of transactions, the software records the article data in the file post.dat. This is done in order that there would be no resending on the already processed article.

This software has already been tested by the user @dimarss on his article Cleaning feathers.Also, the user started the program on his own behalf in which all articles with the tag #sbdgiveaway will be processed by this software.

I invite everyone who has any wishes and suggestions on this software to write them in comments to this post or in GitHub.

Contribution

GitHub:

https://github.com/asuleymanov/sbdd



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Спасибо за скрипт!

Что-то не сильно много постят с этим тегом))

Как я понимаю сейчас только начало. По идее только 1 человек. @dimarss

Ага, голосую за него когда лениво писать комменты)) В принципе на Стимите линейная зависимость вознаграждений, так что здесь программа не сильно нужна с точки зрения ROI, но зато здесь больше богатых людей, и их может устроить такой вариант

Hey @asuleymanov I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

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

Hello @asuleymanov
We have given you our still tinnie-winnie upvote!
You have been spotted by @dimarss to possess rare gem!

So what can we do than to seal the deal, give you our tiny upvote and celebrate you, for everyone has something to offer.

We welcome you to the #untalented family. Feel free to come around for its a home with us. Flaws allowed, so relegate reservations and play with that beautiful mind of yours, let's tap into more hidden aspects of you. No average, no bum, just awesome you and the best version of YOU is a gift to humanity everytime. Stay awesome!

Join the steemgigs community on discord

https://discord.gg/CGuPyyT

#untalented is a branch of @steemgigs. If you would like to offer your service in building the dreams of other steemians, you can do so under #steemgigs.

However, if you want to experience full blown freedom and grow in confidence about your gifts and talents, share under #untalented.

We aim to create historical moments in the genre of touching lives and you can support us if you desire, by voting on steemgigs for witness. Simply click here

https://steemit.com/~witnesses

and type steemgigs in the first search box.

Just incase you find any level or form of gifts, talents, attempts at out-of-the-boxness, or any steemian low in confidence about their abilities, worth, etc; please don't let it slip emptily by.
Kindly call on me! Simply reply to any such post and add @steem-untalented or #untalented to your reply and i will be there to upvote, acknowledge, strengthen and encourage them.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Great work.

Would you mind updating app's messages to English and add some documentation about the usage?

Thank you very much for the answer.
I will translate everything into English in the next few days. And I will make more decent documentation for use.

I will try to do it as soon as possible.

Greetings @emrebeyler.
The software was put in an appropriate form.
There was added support for different languages.
Also, there was added instructions for its installation, configuration and use.

Quite impressive. I would like to use it later on.

for me is very good..

Смотри, каких я еще отзывчивых ребят знаю)
@originalworks
@steem-untalented

The @OriginalWorks bot has determined this post by @asuleymanov to be original material and upvoted(1.5%) it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

nice post thanks:)