Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
13d2455
Initial commit
mcfarhat Jul 8, 2018
0c19ab2
Update README.md
mcfarhat Jul 8, 2018
fa8eb7d
added config file for heroku
ignacioblit Jul 8, 2018
615a0db
changed root return
ignacioblit Jul 8, 2018
85dd016
added user transactions
ignacioblit Jul 8, 2018
c376d90
async votes and comments - save data gets reblogs
ignacioblit Jul 10, 2018
c70d32d
new async function
ignacioblit Jul 10, 2018
34fb17c
deploy config
ignacioblit Jul 10, 2018
f7db664
fixed user tokens database error
ignacioblit Jul 10, 2018
fc44918
fixed comment conditional
ignacioblit Jul 10, 2018
31f8523
Master rebase
ignacioblit Jul 11, 2018
807ad83
Merge pull request #1 from mcfarhat/voting_bot
mcfarhat Jul 12, 2018
bdb919d
Update README.md
mcfarhat Jul 12, 2018
e5fc0f1
added Dsteem & eslint - initial delegation retrival
cryptouru Jul 22, 2018
7a7c928
saving of delegation transactions and active_delegations
cryptouru Jul 22, 2018
bca2da7
fixed pagination conditional
cryptouru Jul 24, 2018
1673074
process delegations
cryptouru Jul 25, 2018
98145ea
process token rewards to database
cryptouru Jul 25, 2018
cbe18e9
delegation rewards math
cryptouru Jul 29, 2018
47cff3a
moved functions around added date option to functions
cryptouru Jul 29, 2018
179a73f
added getAcumulatedRewards function and email template
cryptouru Jul 29, 2018
4e4d9a0
send rewards json as attachement and update config example
cryptouru Jul 29, 2018
e63f5fa
ready process up
cryptouru Jul 30, 2018
88aad27
scheduled process & SP multiplier
cryptouru Aug 5, 2018
a5cf056
New endpoints for various purposes
mcfarhat Aug 5, 2018
a1ba305
Voting process adjustments
mcfarhat Aug 5, 2018
14d35be
Charity support and additional fixes
mcfarhat Aug 5, 2018
56e51ad
New config items
mcfarhat Aug 7, 2018
c077902
Merge branch 'master' into delegations
cryptouru Aug 18, 2018
9aef05f
Merge pull request #2 from mcfarhat/delegations
mcfarhat Aug 18, 2018
9ae2855
Banned Users Issue Fix
mcfarhat Aug 20, 2018
b4e588d
Switch process to daily rewards + relevant fixes
mcfarhat Aug 20, 2018
cf12070
SP Calculation Changes
mcfarhat Aug 20, 2018
8e911cf
Save Process Fix
mcfarhat Aug 20, 2018
94bf0ec
Add several API functions
mcfarhat Sep 25, 2018
b80b1b2
Add User Rank Calculation
mcfarhat Sep 30, 2018
5db0e2a
Adjust Voting Power (Mana) Calculation post HF20
mcfarhat Sep 30, 2018
a62366c
Dynamic Banned Users List and other changes
mcfarhat Sep 30, 2018
a0eaa91
Steem only rewards + Opt out users pay
mcfarhat Sep 30, 2018
5c5dbcb
Save data fixes (banned users, self votes..)
mcfarhat Sep 30, 2018
d9ca43a
Fix issue with non-existing users Rank
mcfarhat Oct 7, 2018
b1ad7e8
Adjust Comment Template
mcfarhat Oct 7, 2018
29f03f2
Implement New Actifit V2 Reward System
mcfarhat Oct 7, 2018
e989543
Fix issue with reading beneficiary data
mcfarhat Oct 7, 2018
bbe2dac
Implement Automated RC and Account Claim
mcfarhat Oct 7, 2018
6858f5e
Add missed change for RC and Account Claim commit
mcfarhat Oct 7, 2018
1e91e9d
Add New API Endpoints
mcfarhat Oct 18, 2018
1b4abf5
Store Proper DB Date Format
mcfarhat Oct 18, 2018
0306081
Process more than 1 post per day per user
mcfarhat Oct 18, 2018
f318d7a
Allow swapping Steem payments for AFIT tokens
mcfarhat Oct 18, 2018
df463b0
Implement delegation payout process changes
mcfarhat Oct 18, 2018
3c53c22
Implement Standard Improvements
mcfarhat Oct 30, 2018
e733620
Implement Moderator Activity Endpoint
mcfarhat Oct 30, 2018
ff2cd6b
New delegator beneficiary account feature
mcfarhat Oct 30, 2018
3d06903
Append further comment meta data
mcfarhat Oct 30, 2018
07b6b78
Add hourly constraint between reports
mcfarhat Nov 9, 2018
07eb87c
Implement Minor Fixes
mcfarhat Nov 9, 2018
d7b1e46
Implement Auto-rewards claims full AFIT Pay
mcfarhat Nov 9, 2018
9a097fc
Create new API endpoints
mcfarhat Nov 9, 2018
5c6bd4d
Signup & referrals API (& other changes)
mcfarhat Dec 28, 2018
d4b7bf5
Support for multi-vote and comment attempts
mcfarhat Jan 10, 2019
f0069aa
Improvements to display of earnings + weekly avg
mcfarhat Jan 11, 2019
3a63022
Append additional charity related data
mcfarhat Jan 11, 2019
68e643e
Switching all logging to utils
mcfarhat Jan 14, 2019
75ce5e1
Committing proper version with utils changes
mcfarhat Jan 14, 2019
0c827da
Switch from vote_rshares to net_rshares
mcfarhat Jan 15, 2019
f05ca56
Implement new security endpoints
mcfarhat Jan 17, 2019
5d09169
Improve payments calculation
mcfarhat Jan 17, 2019
660de79
Add new top query limit
mcfarhat Jan 18, 2019
7ac3f1b
Implement checks against altered critical data
mcfarhat Jan 18, 2019
1e1878c
Fix charity total count issue
mcfarhat Jan 20, 2019
13b78af
Implement fix to missing voting date
mcfarhat Jan 21, 2019
56458ff
Implement Permanent Skippable Posts
mcfarhat Jan 25, 2019
b29848b
Add endpoint to fetch categorized token holders
mcfarhat Feb 5, 2019
3b0ed54
Add New Reward Types Endpoints
mcfarhat Feb 10, 2019
053e957
Upgrade Vulnerable Package
mcfarhat Feb 10, 2019
932a202
Additional Reward Types + Payment Verification
mcfarhat Mar 9, 2019
57338fc
Fix Missed Delegations Issue
mcfarhat Mar 9, 2019
98fc917
New Endpoints in Support of Token Exchange
mcfarhat Mar 9, 2019
b57726b
Implement core functionality for AFIT exchange
mcfarhat Mar 9, 2019
6961320
Add endpoint for user trx history
mcfarhat Mar 18, 2019
81cfce5
Parametrize Steem Node
mcfarhat Mar 18, 2019
1f62324
Prevent vote rewards for banned users
mcfarhat Mar 18, 2019
e0f7f70
Delay exchange complete status till STEEM upvote
mcfarhat Mar 18, 2019
d9896fb
Automate sponsored athlete reward
mcfarhat Mar 18, 2019
39530a5
Implement Exchange Refund
mcfarhat Apr 7, 2019
699a048
Switch Helper Vote Percent to Config
mcfarhat Apr 7, 2019
8241fc3
Skip Moderator Self Reward
mcfarhat Apr 7, 2019
beb993a
Implement Recurring Token Exchange Cleanup
mcfarhat Apr 7, 2019
6b3dd9a
Enable multi-account benefit
mcfarhat May 9, 2019
7b989c6
Move AFIT S-E to AFIT Actifit wallet
mcfarhat May 9, 2019
5d7e51a
Move AFIT S-E to AFIT Actifit
mcfarhat May 9, 2019
e271e6e
Bulk update AFIT SE to Actifit Wallet
mcfarhat May 9, 2019
1785f00
Append additional transfer data calculation
mcfarhat May 9, 2019
5d67efd
Implement badge specific API
mcfarhat May 9, 2019
7478899
Implement alt beneficiary status for SP rank
mcfarhat May 9, 2019
0cdd05f
missing case over boundary activity count : 150k +
mcfarhat May 9, 2019
f7d1ef8
Support PromoCode & New Badges
mcfarhat May 20, 2019
7ddaf26
Implement Lucky Winner API
mcfarhat May 24, 2019
16c522d
Implement API for charity donors
mcfarhat Jun 7, 2019
0d3846e
Fix multi-delegator payment issue
mcfarhat Jun 7, 2019
91e3afa
Implement Recurring fetching of AFITX balance
mcfarhat Sep 5, 2019
f4f57db
Fix crash issue for latent db connection
mcfarhat Sep 5, 2019
ecb562c
Create new endpoints AFIT+AFITX
mcfarhat Sep 5, 2019
4e1bb70
New endpoints for various data
mcfarhat Sep 5, 2019
e706c7d
Implement backend tipping functionality
mcfarhat Sep 5, 2019
0e52e4f
Implement hard limit on trx max count
mcfarhat Sep 5, 2019
b66c056
Implement Core AFIT to SE Move Functionality
mcfarhat Sep 5, 2019
4eae115
Adjust rank calculation to allow day delay factor
mcfarhat Sep 5, 2019
1c24775
Implement AFITX Factor in Rank Calculation
mcfarhat Sep 5, 2019
80cb2ab
Improve Confirm AFIT SE Move Functionality
mcfarhat Sep 5, 2019
17d7574
Implement Core Buy Product Functionality
mcfarhat Sep 5, 2019
75ca595
New Various Endpoints
mcfarhat Sep 5, 2019
c832083
Wording improvements to actifit comments
mcfarhat Sep 5, 2019
420b4b0
Adjustments to actifit rewards comment
mcfarhat Sep 5, 2019
5e00866
Implement multi-node + airdrop + AFIT 2 SE
mcfarhat Sep 5, 2019
db4e620
Implement timeout functionality w/ limited retries
mcfarhat Sep 5, 2019
8d26e98
Implement payment receipt confirmation
mcfarhat Sep 5, 2019
5790042
Implement Easy Array Sort Functionality
mcfarhat Sep 5, 2019
d507b67
Implement AFITX Data & Prio Voting
mcfarhat Sep 5, 2019
04cffda
Implement Voting API
mcfarhat Sep 5, 2019
3825c58
Implement partner voting support
mcfarhat Sep 5, 2019
1108703
Add support for yesterday post cases
mcfarhat Sep 5, 2019
0b66c7b
Fix Crashing Issue + Remove Count Sorting
mcfarhat Sep 5, 2019
0850968
update outdated packages
mcfarhat Sep 5, 2019
7284e11
Append additional voting status params
mcfarhat Sep 12, 2019
37eb464
Ensure user auto-moving AFIT is not banned
mcfarhat Sep 12, 2019
c9f2a47
Fix issue calculating proper waiting time
mcfarhat Sep 12, 2019
691a800
Implement Moderator Action End Point
mcfarhat Nov 13, 2019
c6f54d6
Bump axios from 0.18.0 to 0.18.1
dependabot[bot] Nov 13, 2019
adfb27f
Implement recentAuthorsData & totalPostsSubmitted
mcfarhat Nov 13, 2019
701b272
Implement Friendship & Notifications
mcfarhat Nov 13, 2019
46ccd29
Fix several issues
mcfarhat Nov 13, 2019
9efef3a
Implement Gadget Functionality
mcfarhat Nov 13, 2019
293ca01
Implement Util based changes
mcfarhat Nov 13, 2019
0207137
Implement AFIT Move transaction rollback
mcfarhat Nov 13, 2019
22e9704
Merge pull request #4 from actifit/dependabot/npm_and_yarn/axios-0.18.1
mcfarhat Nov 13, 2019
6c5605d
Bump mixin-deep from 1.3.1 to 1.3.2
dependabot[bot] Nov 13, 2019
de1f12a
Bump handlebars from 4.0.11 to 4.5.1
dependabot[bot] Nov 13, 2019
84b4d8e
Merge pull request #3 from actifit/dependabot/npm_and_yarn/mixin-deep…
mcfarhat Nov 13, 2019
096f7c5
Merge pull request #6 from actifit/dependabot/npm_and_yarn/handlebars…
mcfarhat Nov 13, 2019
7a39e7d
Implement new endpoints
mcfarhat Nov 15, 2019
ff31404
Prevent banned users from suggested list
mcfarhat Jan 5, 2020
98ae6b3
Prevent banned accounts from top lists
mcfarhat Jan 5, 2020
faac33b
Fix issue with extra decimal precision
mcfarhat Jan 21, 2020
d761726
Implement Support Delegation Rewards Hive
mcfarhat Apr 4, 2020
603f939
Implement Support User Key Login
mcfarhat Apr 4, 2020
21a1f08
Support Multi-Chain Transactions
mcfarhat Apr 4, 2020
a9ddf31
Sorting Capability for Trx By Type List
mcfarhat Apr 4, 2020
debfaaf
Adjustments Supporting Multi-Chain + Login
mcfarhat Apr 4, 2020
38c6141
Support Gadgets Rewards
mcfarhat Apr 4, 2020
15f79c0
Voting Round Multi-Chain Support
mcfarhat Apr 4, 2020
8021ab0
Append Support Buying & Burning Tokens
mcfarhat Apr 4, 2020
584a450
Append Support for Witness Price Feed Bcast
mcfarhat Apr 4, 2020
c4f943e
Adjust Reward Value Calculation
mcfarhat Apr 4, 2020
1e7c4f0
Create reset login functionality
mcfarhat Apr 8, 2020
7030651
Updating weekly delegation reward calculation
mcfarhat Apr 13, 2020
980150b
Append claiming rewards for both chains
mcfarhat Apr 14, 2020
3179600
Improve error reporting based on trx
mcfarhat Apr 17, 2020
4c3889b
Append login history
mcfarhat Apr 18, 2020
57b40d7
Add support for running gadget trx on hive
mcfarhat Apr 29, 2020
9a8bfdd
Fix ordering issue in API call
mcfarhat Apr 29, 2020
3f2d326
implement keep logged in API support
mcfarhat Apr 29, 2020
7af815e
Create beneficiary notification
mcfarhat Apr 30, 2020
b6f6310
Add tip notifications
mcfarhat Apr 30, 2020
b015c96
Hive based funds pass verification
mcfarhat Apr 30, 2020
b86fd42
Refactor notifications to utils
mcfarhat May 1, 2020
48b8727
Implement post reward notifications
mcfarhat May 1, 2020
3abf0f7
Switch rank calculation to HP delegation
mcfarhat May 5, 2020
4f97bc3
schedule recurring API node restart calls
mcfarhat May 13, 2020
671dad2
New endpoints for notifications
mcfarhat May 13, 2020
2fdfbaf
Implement token moves from hive-engine
mcfarhat May 16, 2020
1a9db82
Implement direct HE-SE token move
mcfarhat May 29, 2020
781abe3
Adjust AFITX Holders to include HE
mcfarhat May 29, 2020
4e1894b
Implement proper AFITX cross exch check
mcfarhat May 30, 2020
bf0afe9
Fix issue with sending our daily AFIT to HE
mcfarhat Jun 3, 2020
ff48776
Fix delegation reward dispatch issue
mcfarhat Jun 5, 2020
c3ca523
switch hive support to hive-js & dhive
mcfarhat Jun 10, 2020
0f734e5
switch hive support to hive-js & dhive
mcfarhat Jun 10, 2020
4662fe9
Bump hive-js & dhive versions
mcfarhat Jun 24, 2020
7ecca41
New endpoints for signups/referrals
mcfarhat Jun 24, 2020
23a718c
Implement Dynamic Referral Reward
mcfarhat Jun 25, 2020
de251d8
Implement dynamic referral reward
mcfarhat Jun 25, 2020
6e91ca0
User Activity report End Point + Verify Newbie
mcfarhat Jul 15, 2020
dcd8ec8
Append new endpoints for verified newbies
mcfarhat Jul 15, 2020
8e183a0
Implement newbie reward part of cycles
mcfarhat Jul 16, 2020
938fec0
Bump elliptic from 6.5.1 to 6.5.3
dependabot[bot] Jul 30, 2020
fe1a536
Implement new AFIT exchange price endpoint
mcfarhat Jul 30, 2020
d8dd240
bump set-value version for security fix
mcfarhat Jul 30, 2020
f906d59
Merge pull request #10 from actifit/dependabot/npm_and_yarn/elliptic-…
mcfarhat Jul 30, 2020
c9b2b70
bump dot-prop for security fix
mcfarhat Jul 30, 2020
b0c247b
New gadget purchase API using HIVE
mcfarhat Aug 3, 2020
4497aed
New Prize System Functionality
mcfarhat Aug 13, 2020
f81a43c
Implement additional ticket prize support
mcfarhat Aug 17, 2020
ccf05b8
Implement contest improvements + Multi gadget
mcfarhat Aug 19, 2020
2ffddc4
Endpoint for aggregated ticket data
mcfarhat Aug 22, 2020
95fb24e
Add notification upon winning prize
mcfarhat Aug 22, 2020
f822b81
Add ticket count to API endpoint
mcfarhat Aug 25, 2020
8eba415
Fix multi gadget activation + ticket notifications
mcfarhat Aug 27, 2020
437d259
Support friend post notifications
mcfarhat Sep 8, 2020
2e598fd
Bump qs and express
dependabot[bot] Dec 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"extends": "standard"
};
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
logs
*.log
npm-debug.log*
config.json
state.json
config.json

# Runtime data
pids
Expand Down
56 changes: 3 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,5 @@
# Community Bot - Voting bot for communities on Steem!
# Actifit Bot

This is a voting bot for communities on the Steem platform. Members of the community can all chip in to power up the bot which will then go through the list of members and upvote the latest post by each.
This bot was built to perform voting on actifit posts, but also store and calculate actifit tokens, transactions and relevant posts into own Mongogb

## Installation
```
$ npm install
```

## Configuration
First rename config-example.json to config.json:
```
$ mv config-example.json config.json
```

Then set the following options in config.json:
```
{
"disabled_mode": false,
"testing": true,
"detailed_logging": false,
"account": "actifit",
"main_tag": "actifit",
"memo_key": "your_private_memo_key",
"posting_key": "your_private_posting_key",
"active_key": "your_private_active_key",
"auto_claim_rewards" : true,
"vote_weight": 100000,
"min_hours": 24,
"comment_location": "comment.md",
"comment": false,
"resteem": false,
"no_paid_bots": true,
"beneficiaries": ["actifit", "actifit.pay"],
"flag_signal_accounts": ["spaminator", "cheetah", "steemcleaners", "mack-bot"],
"report_emails": "urucrypto@gmail.com",
"smtp_usr": "SMTP USERNAME",
"smtp_from": "'From Name' <from@domain.domain>",
"smtp_key": "key"
}
```
## Run
```
$ npm run all
```

This will run the process in the foreground which is not recommended. We recommend using a tool such as [PM2](http://pm2.keymetrics.io/) to run the process in the background as well as providing many other great features.

### To run each service apart

```
$ npm run api
$ npm run import
$ npm run curate
```
The work in this bot has been implemented so far by @cryptouru, based on a fork of yabapmatt's community bot https://github.com/MattyIce/communitybot
Loading