Steem Randow Draw 1.4

in utopian-io •  6 years ago 

Repository

e.g. https://github.com/Deadz/SteemRandomDraw

App

https://deadz.github.io/SteemRandomDraw/

New Features

  • Improvement of the interface
    menu1.3.png
    Menu V1.3

    1. Optimization of language choice, creation of a drop-down menu (space saving).
    2. Removal of the gap between the two blocks.
    3. Removal of the link and the connection/disconnection feature that was no longer working.

menu1.4.png

Menu V1.4

form1.3.png

Form V1.3

4. Graphical improvement of the choice of options, and addition of a slider for the percentage of upvote.
5. Graphical improvement of the choice between "upvote and comment" and "upvote or comment" (Only visible if upvote and comment are checked at the same time).

form1.4.png
Form V1.4

  • New option !
    newoptionask.png
    A month ago, muscara asked me to add a new option: "responses to comments." I asked him for more explanation, here is a part of it:

An example is this post. Breadcentric and Phoenixwren replied to the comment by Akipponn. They wouldn't be eligible which I find unfortunate - their reply was a comment for my post, too.

Quote muscara

Indeed, with version 1.3, for its article, only 6 comments were taken into account, and 5 eligible after removing the bots.

repli1.3.png

Result V1.3

So I worked to add the option.
newoption.png

And here is the result for a draw on the same article and the new version
repli1.4.png

Result V1.4

11 comments detected, and 7 eligible participants, including Breadcentric and Phoenixwren that was missing just before.

Next step

  • Create a steemrandom draw API.
  • Create a bot. (who will use this API)
    The bot would work like this:
    It receives via a memo the link of the article and the options (upvote, comment etc. for a cost of 0.001 steem/sbd.
    The bot checks the age of the item, if less than 7 days, the draw is put on the waiting list, if more than 7 days, the API is used to make the draw.
    The bot leaves a comment under the article with the name of the winner and details of the draw conditions.
    Finally the bot returns the 0.001 steem/sbd to the user, telling him that the draw has been done.
  • Bot v2 une seconde option ou l’utilisateur paye pour le tirage, mais peut récupérer 75% de toutes les mises de la semaine. (Par tirage au sort) Une certaine manière de soutenir mon travail tout en restant dans le monde du tirage au sort

- Technology Stack

So I'm going to have to learn on node.js
Learn how to create a REST API

- Roadmap

  • Creation of the API
  • (API test)
  • Creating the bot
  • (Bot test)
  • Creation of version 2 of the bot

- How to contribute?
If you want to help me contact me on discord : Deadzy#3449

GitHub Account

E.g. https://github.com/Deadz

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:  
  ·  6 years ago 

Thank you for your contribution. It is good to see the project has been resumed after 6 months. I'd like to give a few suggestions if you don't mind.

  1. It is better to use === instead of == in your JS code.
  2. It is better to separate your commits into a few, and meaning ones instead of a single commit. Also, the commit messages need to be more descriptive.
  3. Please start using PR to group your commits that will be easier to follow.
  4. Your JS and HTML are mixed in the same file - which is a code smell - it is better to separate the logics from the presentation.
  5. please start using let and const which will improve your code readability.

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 https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you for the suggestions, I will put all this in place as soon as possible, beautiful day

Thank you for your review, @justyy! Keep up the good work!

What a coincidence - I was on the verge of making a draw for a give away :)

Thank you for your work!

Thank you: D Tell me if there are any other problems :)

Hi @deadzy!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @deadzy!

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

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

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

Vote for Utopian Witness!