Re-implementing Steem Voter
Repository
https://github.com/tyraelll/PHP-upvote-comment-bot
What the project is about?
I have thought about contributing to some open source projects out there and while searching, i found this one project which i think should by now be a working tool for its potential users.
Steem Voter is a tool that can be used to upvote posts and also comment at same time. It extends it functionality to been able to upvote and comment on posts of list of users provided by the user.
Steem Voter is a software tool original started by @omeratagun and have been receiving contributions from
@akintunde (here and also here) but for some time, it has received little or no contributions. So i decided to pick up this wonderful project and re-implement it. Re-implementing in the sense that, the current stage of the project gives its potential users less idea of what the software is used for.
Having communicated with @omeratagun, i will be re-implementing Steem voter as i plan to make it a more advanced tool that what it is currently.
Technology Stack
All technologies used for this project by the project owner will be maintained but as part of the roadmap for this project, its codebase will be moved to preferably an MVC Architecture Framework to make it maintainable.
Feature Added
- Users can now upvote via steemconnect: This feature did't seem to have been implemented while testing the app, so i decided to make it work.
- User specific upvote to upvote posts from a specific user
How I implemented it
I changed the redirect URL which was set to $linkout = 'localhost/steemvote/upvote.php?a='.$author_perm_link; to $api = 'https://v2.steemconnect.com/sign/vote?';
This redirects user to steemconnect for authentication
// Get username of voter from cookie and store in $voter variable
$voter = $_COOKIE['voter'];
// Get username of author whose post is to be voted from resources
$author = $data["author"];
// Store permlink in variable
$permlink = $author_perm_link;
// Lets concatenate all variables to form our link
$linkout = $api."voter=".$voter."&author=".$author."&permlink=".$permlink;
Commits
https://github.com/tyraelll/PHP-upvote-comment-bot/commit/acdbcf551b5e8f6cefcd90d96f3b6e422bfe75a5
https://github.com/tyraelll/PHP-upvote-comment-bot/commit/0b691bc8de92f3bfdef03f2ce7b596976c43161c
Merged Pull Request
https://github.com/tyraelll/PHP-upvote-comment-bot/commit/36a390cca3737d9879de36ac5113b202a4fb7654
Roadmap
- The current software make use of user's WIF for authentication. It will be changed to make use of steemconnect.
- Create attractive and descriptive User Interface
- Improve the User Experience
- Feature for user to upvote a post and also comment at a go.
- Feature for user to upvote a list of post from different users and also comment at a go.