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 :)