Skip to content

Latest commit

 

History

History
110 lines (58 loc) · 2.79 KB

File metadata and controls

110 lines (58 loc) · 2.79 KB

BankDecay

Economy decay!

Periodically reduces users' red currency based on inactivity, encouraging engagement.
Server admins can configure decay parameters, view settings, and manually trigger decay cycles.
User activity is tracked via messages and reactions.

[p]bankdecay

Setup economy credit decay for your server

  • Usage: [p]bankdecay
  • Restricted to: ADMIN
  • Aliases: bdecay
  • Checks: guild_only

[p]bankdecay setpercent

Set the percentage of decay that occurs after the inactive period.

Example
If decay is 5%, then after the set days of inactivity they will lose 5% of their balance every day.

  • Usage: [p]bankdecay setpercent <percent>

[p]bankdecay logchannel

Set the log channel, each time the decay cycle runs this will be updated

  • Usage: [p]bankdecay logchannel <channel>

[p]bankdecay resettotal

Reset the total amount decayed to zero.

  • Usage: [p]bankdecay resettotal

[p]bankdecay setdays

Set the number of inactive days before decay starts.

  • Usage: [p]bankdecay setdays <days>

[p]bankdecay initialize

Initialize the server and add every member to the config.

Arguments

  • as_expired: (t/f) if True, initialize users as already expired

  • Usage: [p]bankdecay initialize <as_expired>

[p]bankdecay ignorerole

Add/Remove a role from the ignore list

Users with an ignored role will not have their balance decay

  • Usage: [p]bankdecay ignorerole <role>

[p]bankdecay bulkaddpercent

Add a percentage to all member balances.

Accidentally decayed too many credits? Bulk add to every user's balance in the server based on a percentage of their current balance.

  • Usage: [p]bankdecay bulkaddpercent <percent> <confirm>

[p]bankdecay seen

Check when a user was last active (if at all)

  • Usage: [p]bankdecay seen <user>

[p]bankdecay bulkrempercent

Remove a percentage from all member balances.

Accidentally refunded too many credits with bulkaddpercent? Bulk remove from every user's balance in the server based on a percentage of their current balance.

  • Usage: [p]bankdecay bulkrempercent <percent> <confirm>

[p]bankdecay decaynow

Run a decay cycle on this server right now

  • Usage: [p]bankdecay decaynow [force=False]

[p]bankdecay cleanup

Remove users from the config that have no balance

  • Usage: [p]bankdecay cleanup <confirm>
  • Restricted to: BOT_OWNER

[p]bankdecay view

View Bank Decay Settings

  • Usage: [p]bankdecay view

[p]bankdecay toggle

Toggle the bank decay feature on or off.

  • Usage: [p]bankdecay toggle

[p]bankdecay getexpired

Get a list of users who are currently expired and how much they will lose if decayed

  • Usage: [p]bankdecay getexpired