Actifit Bot Development Updates

in #actifit5 years ago

Repository

https://github.com/mcfarhat/actifit-bot

Introduction

Actifit bot is an integral part of the whole Actifit project and reward process. As the project grows, we find the need to continuously improve and implement further functionality to complement the project and its growth, while also providing further flexibility to our users.
We have implemented several new features, modifications and fixes to enhance Actifit, including new API endpoints, new delegation reward beneficiary system, as well as few other improvements.
Below you will find more details about this update.

Technology Stack

The bot is scripted using Node.js, and connects to a MongoDB instance for storing values.

Work Done

New Delegation Beneficiary System: Commit Link
  • Implement new functionality to allow directing delegator rewards to alt accounts in terms of user rank, rewarded AFIT and STEEM/SBD. This is an optional opt-in functionality to users, stored in the db, that allows delegators to use one of the below 3 options:
    • Set delegation User Rank value to the benefit of an alt-account.
    • Redirect AFIT token delegation rewards to an alt-account.
    • Redirect STEEM+SBD delegation rewards to the alt-account.
Moderator Activity End Point: Commit Link
  • The efforts of Actifit moderators are essential to the platform, and as Actifit management it is critical to have more visibility over this aspect, particularly as more rewards are auto-associated with moderator various activities.
    For this purpose, we implemented this new end point that allows fetching the activity for all moderators (based on registered active moderators) for today (by default), and allows also passing a date param to set a particular date, and/or another period length param to allow setting a specific period of activity.
    Being somewhat of a non-expert with Mongodb, the implementation of this took quite some time, but the result was perfect for our purposes.
Various Additional Work: Commit Link Commit Link
  • Increase standard limit of transaction display to 1,000, previously set at 250.
  • Adjust params to common functions (activeDelegationFunc) to remove useless data being sent as params and just send out user info.
  • Factor out moderator list fetching function to allow better code reusability
  • Append further details to json meta data on actifit comments

Roadmap

Further continuous improvements will be implemented as part of the bot, as we aim to build further on the different new functionality, and particularly on developing new end points to improve the website and app experience.

How to contribute?

You can chat to us on the official actifit discord, or to me in discord private @mcfarhat#6013.
Contributions are accepted as pull requests to the official github repo.
We are having continuous tasks assigned to different contributors to our project. More official tasks are continuously announced :)

GitHub Account

https://github.com/mcfarhat

Sort:  
  • Good code, comments and explanations.
  • Could use more graphics and code sample.

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 your review, @helo! Keep up the good work!

❤️<3..Actifit..<3❤️

P.S. Don’t forget the iWatch....😛

One of our key targets ! :)

thanks for your efforts ! :)

Actifit ♥ LOVE

Posted using Partiko Android

Hi, @mcfarhat!

You just got a 0.27% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Congratulations! Your post has been selected as a daily Steemit truffle! It is listed on rank 3 of all contributions awarded today. You can find the TOP DAILY TRUFFLE PICKS HERE.

I upvoted your contribution because to my mind your post is at least 19 SBD worth and should receive 111 votes. It's now up to the lovely Steemit community to make this come true.

I am TrufflePig, an Artificial Intelligence Bot that helps minnows and content curators using Machine Learning. If you are curious how I select content, you can find an explanation here!

Have a nice day and sincerely yours,
trufflepig
TrufflePig

Keep up the great work, MC! Thanks for the constant updates!

Hi @mcfarhat!

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, @mcfarhat!

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!

Good work, as always 👍😀

Posted using Partiko Android

Will the actifit be able to connect to a smart watch? Or just track through the phone?

Coin Marketplace

STEEM 0.25
TRX 0.11
JST 0.033
BTC 63243.61
ETH 3078.23
USDT 1.00
SBD 3.89