t-900-a / fider-monero-bot

monero bot intended to facilitate crowd sourced bonties through the open source feature request system fider
4 stars 3 forks source link

Update welcome message to include site donation statistics #5

Open t-900-a opened 3 years ago

t-900-a commented 3 years ago

https://github.com/t-900-a/fider-monero-bot/blob/master/process-monero/main.go

Modify the code to calculate the total Monero raised on the site all together and the past 7 days every time a transaction is received.

Update the welcomeMessage that displays on the front page to include the latest summation.

POST */_api/admin/settings/general 

{"title":"Monero Bounties","cname":"","welcomeMessage":"Monero is a decentralized community-driven project.\n\nWe'd love to hear any ideas you have involving the protocol or ecosystem projects. This is the place for you to vote, discuss and share ideas.\n\nIf you are a freelance developer browse through the open bounties. Or better yet, create your own bounty, share, and get funded. Once the bounty is marked complete, the raised funds will be distributed.\n\nDiscussions held on matrix. \nhttps://matrix.to/#/%23monero-bounties:monero.social\n\nDonation Tracker:  {sum_xmr_past_week} XMR past week, {sum_xmr_total} total XMR across all bounties","invitation":"Create a new Bounty..."}
dginovker commented 2 years ago

I'd love to see the total since the beginning of time as well